Skip to content

Commit b7b8884

Browse files
committed
Missing process func arg
1 parent 8f00499 commit b7b8884

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bw2data/method.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def write(self, data, process=True):
8080

8181
self.metadata["geocollections"] = sorted(geocollections)
8282
self._metadata.flush()
83-
super(Method, self).write(data)
83+
super(Method, self).write(data, process=process)
8484

8585
def process(self, **extra_metadata):
8686
try:

tests/ia.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,14 @@ def test_method_processed_array_add_identifier(reset):
141141
print(package.metadata)
142142
assert package.metadata['resources'][0]['identifier'] == ['a', 'method']
143143

144+
144145
@bw2test
145146
def test_iads_process_without_name():
146147
iads = MockIADS(None)
147148
with pytest.raises(TypeError):
148149
iads.process()
149150

151+
150152
@bw2test
151153
def test_method_missing_reference():
152154
database = DatabaseChooser("foo")

0 commit comments

Comments
 (0)