@@ -205,7 +205,7 @@ def test_cff_harvest(tmp_path, monkeypatch, cff, res):
205205
206206 # FIXME: update to compare the SoftwareMetadata objects instead of the data_dicts (in multiple places)
207207 # after merge with refactor/data-model and/or refactor/423-implement-public-api
208- assert result . data_dict == res . data_dict
208+ assert result == res
209209
210210
211211@pytest .mark .parametrize (
@@ -363,7 +363,7 @@ def test_codemeta_harvest(tmp_path, monkeypatch, codemeta, res):
363363 finally :
364364 sys .argv = orig_argv
365365
366- assert result . data_dict == res . data_dict
366+ assert result == res
367367
368368
369369@pytest .mark .parametrize (
@@ -402,7 +402,7 @@ def test_file_deposit(tmp_path, monkeypatch, deposit, res):
402402 finally :
403403 sys .argv = orig_argv
404404
405- assert result . data_dict == res . data_dict
405+ assert result == res
406406
407407
408408@pytest .mark .parametrize (
@@ -432,12 +432,12 @@ def test_invenio_deposit(tmp_path, monkeypatch, sandbox_auth, metadata):
432432
433433 config_file = tmp_path / "hermes.toml"
434434 config_file .write_text (f"""[deposit]
435- target = \ " invenio\ "
435+ target = "invenio"
436436[deposit.invenio]
437- site_url = \ " https://sandbox.zenodo.org\ "
438- access_right = \ " closed\ "
439- auth_token = \ "{ sandbox_auth } \ "
440- file = []
437+ site_url = "https://sandbox.zenodo.org"
438+ access_right = "closed"
439+ auth_token = "{ sandbox_auth } "
440+ files = ["hermes.toml" ]
441441[deposit.invenio.api_paths]
442442licenses = "api/vocabularies/licenses"
443443""" )
@@ -455,9 +455,7 @@ def test_invenio_deposit(tmp_path, monkeypatch, sandbox_auth, metadata):
455455 finally :
456456 sys .argv = orig_argv
457457
458- assert result . data_dict == metadata . data_dict
458+ assert result == metadata
459459
460- # TODO:
461- # - handle get() on Softwaremetadata objects in invenio.py
462- # - Sophie genaueres bezüglich Zeiten für Arbeitszeiterhöhung und -zeitraumerweiterung schicken
460+ # TODO: handle get() on Softwaremetadata objects in invenio.py
463461
0 commit comments