From 99d5d90c8cba0b8e549fced4043a23a35cb55776 Mon Sep 17 00:00:00 2001 From: Jochen Klar Date: Mon, 5 Aug 2024 11:52:42 +0200 Subject: [PATCH] Fix tests --- isimip_publisher/tests/test_commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/isimip_publisher/tests/test_commands.py b/isimip_publisher/tests/test_commands.py index e6c1fb1..e38cba6 100644 --- a/isimip_publisher/tests/test_commands.py +++ b/isimip_publisher/tests/test_commands.py @@ -353,7 +353,7 @@ 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 @@ -361,7 +361,8 @@ def test_insert_doi(setup, db, public_datasets, script_runner): 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