Changeset View
Changeset View
Standalone View
Standalone View
swh/search/tests/test_journal_client.py
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Lines | worker_fn( | ||||
}, | }, | ||||
] | ] | ||||
} | } | ||||
) | ) | ||||
search_mock.origin_update.assert_called_once_with( | search_mock.origin_update.assert_called_once_with( | ||||
[ | [ | ||||
{ | { | ||||
"url": "http://foobar.baz", | "url": "http://foobar.baz", | ||||
"intrinsic_metadata": { | "jsonld": { | ||||
"@context": "https://doi.org/10.5063/schema/codemeta-2.0", | "@context": "https://doi.org/10.5063/schema/codemeta-2.0", | ||||
"description": "foo bar", | "description": "foo bar", | ||||
"programmingLanguage": "python", | "programmingLanguage": "python", | ||||
"license": "MIT", | "license": "MIT", | ||||
}, | }, | ||||
}, | }, | ||||
] | ] | ||||
) | ) | ||||
def test_fetch_last_revision_release_date(storage): | def test_fetch_last_revision_release_date(storage): | ||||
for snapshot in SNAPSHOTS: | for snapshot in SNAPSHOTS: | ||||
assert fetch_last_revision_release_date(snapshot.id, storage) is not None | assert fetch_last_revision_release_date(snapshot.id, storage) is not None |