Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.package.archive.tests.test_archive::test_2_visits_without_change_not_gnu
Failed

TEST RESULT

Run At
Jun 22 2020, 4:49 PM
Details
swh_config = '/tmp/pytest-of-jenkins/pytest-0/test_2_visits_without_change_n0/loader.yml' requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f4437358278> def test_2_visits_without_change_not_gnu(swh_config, requests_mock_datadir): """Load a project archive (not gnu) ends up with 1 snapshot """ url = "https://something.else.org/8sync/" artifacts = [ # this is not a gnu artifact { "time": "1999-12-09T09:53:30+00:00", # it's also not a timestamp "sha256": "d5d1051e59b2be6f065a9fc6aedd3a391e44d0274b78b9bb4e2b57a09134dbe4", # noqa # keep a gnu artifact reference to avoid adding other test files "url": "https://ftp.gnu.org/gnu/8sync/8sync-0.2.0.tar.gz", "length": 238466, "filename": "8sync-0.2.0.tar.gz", "version": "0.2.0", } ] # Here the loader defines the id_keys to use for existence in the snapshot # It's not the default archive loader which loader = ArchiveLoader( url, artifacts=artifacts, identity_artifact_keys=["sha256", "length", "url"] ) actual_load_status = loader.load() assert actual_load_status["status"] == "eventful" assert actual_load_status["snapshot_id"] is not None assert_last_visit_matches(loader.storage, url, status="full", type="tar") actual_load_status2 = loader.load() > assert actual_load_status2["status"] == "uneventful" E AssertionError: assert 'eventful' == 'uneventful' E - uneventful E ? -- E + eventful .tox/py3/lib/python3.7/site-packages/swh/loader/package/archive/tests/test_archive.py:335: AssertionError