Skip to content

Commit

Permalink
Missing process func arg
Browse files Browse the repository at this point in the history
  • Loading branch information
cmutel committed May 25, 2024
1 parent 8f00499 commit b7b8884
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bw2data/method.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def write(self, data, process=True):

self.metadata["geocollections"] = sorted(geocollections)
self._metadata.flush()
super(Method, self).write(data)
super(Method, self).write(data, process=process)

def process(self, **extra_metadata):
try:
Expand Down
2 changes: 2 additions & 0 deletions tests/ia.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,14 @@ def test_method_processed_array_add_identifier(reset):
print(package.metadata)
assert package.metadata['resources'][0]['identifier'] == ['a', 'method']


@bw2test
def test_iads_process_without_name():
iads = MockIADS(None)
with pytest.raises(TypeError):
iads.process()


@bw2test
def test_method_missing_reference():
database = DatabaseChooser("foo")
Expand Down

0 comments on commit b7b8884

Please sign in to comment.