Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Aug 5, 2024
1 parent 883a4bc commit 99d5d90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions isimip_publisher/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,15 +353,16 @@ def test_clean(setup, script_runner):


def test_insert_doi(setup, db, public_datasets, script_runner):
response = script_runner.run(['isimip-publisher', 'insert_doi',
response = script_runner.run(['isimip-publisher', '--skip-registration', 'insert_doi',
'testing/resources/test.json', 'round/product/sector/model'])
assert response.success, response.stderr
assert not response.stdout
assert not response.stderr


def test_update_doi(setup, db, public_datasets, resources, script_runner):
response = script_runner.run(['isimip-publisher', 'update_doi', 'testing/resources/test1.json'])
response = script_runner.run(['isimip-publisher', '--skip-registration', 'update_doi',
'testing/resources/test1.json'])
assert response.success, response.stderr
assert not response.stdout
assert not response.stderr
Expand Down

0 comments on commit 99d5d90

Please sign in to comment.