swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7f03edd530b8>
requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f03ede49940>
requests_mock = <requests_mock.mocker.Mocker object at 0x7f03ede49940>
data_jar_2 = b'PK\x03\x04\n\x00\x00\x08\x08\x00\xd7|\xb7L\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00META-INF/\x0...+\x00\x00al/aldi/sprova4j/models/Execution.javaPK\x05\x06\x00\x00\x00\x00#\x00#\x00\xe2\n\x00\x00\xb6-\x00\x00\x00\x00'
def test_jar_2_visits_without_change(
swh_storage, requests_mock_datadir, requests_mock, data_jar_2
):
"""With no prior visit, load a gnu project ends up with 1 snapshot
"""
requests_mock.get(MVN_ARTIFACTS[1]["url"], content=data_jar_2)
loader = MavenLoader(
swh_storage, MVN_ARTIFACTS[1]["url"], artifacts=[MVN_ARTIFACTS[1]]
)
actual_load_status = loader.load()
> assert actual_load_status["status"] == "eventful"
E AssertionError: assert 'uneventful' == 'eventful'
E - eventful
E + uneventful
E ? ++
.tox/py3/lib/python3.7/site-packages/swh/loader/package/maven/tests/test_maven.py:262: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Nov 20 2021, 10:14 AM