Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.package.cran.tests.test_cran::test_cran_one_visit
Failed

TEST RESULT

Run At
Jan 11 2022, 12:33 PM
Details
swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7f823f69c898> requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f823f62aeb8> def test_cran_one_visit(swh_storage, requests_mock_datadir): version = "2.22-6" base_url = "https://cran.r-project.org" origin_url = f"{base_url}/Packages/Recommended_KernSmooth/index.html" artifact_url = ( f"{base_url}/src_contrib_1.4.0_Recommended_KernSmooth_{version}.tar.gz" # noqa ) loader = CRANLoader( swh_storage, origin_url, artifacts=[ { "url": artifact_url, "version": version, "package": "Recommended_KernSmooth", } ], ) actual_load_status = loader.load() assert actual_load_status == { "status": "eventful", "snapshot_id": SNAPSHOT.id.hex(), } assert_last_visit_matches( swh_storage, origin_url, status="full", type="cran", snapshot=SNAPSHOT.id ) check_snapshot(SNAPSHOT, swh_storage) > assert swh_storage.release_get([RELEASE_ID])[0] == Release( id=RELEASE_ID, name=b"2.22-6", message=( b"Synthetic release for CRAN source package " b"Recommended_KernSmooth version 2.22-6\n" ), target=hash_to_bytes("ff64177fea3f4a5136b9caf7581a4f7d4cf65296"), target_type=ObjectType.DIRECTORY, synthetic=True, author=Person( fullname=b"Brian Ripley <ripley@stats.ox.ac.uk>", name=b"Brian Ripley", email=b"ripley@stats.ox.ac.uk", ), date=TimestampWithTimezone.from_datetime( datetime.datetime(2001, 6, 8, 0, 0, tzinfo=datetime.timezone.utc) ), ) E AttributeError: type object 'datetime.datetime' has no attribute 'datetime' .tox/py3/lib/python3.7/site-packages/swh/loader/package/cran/tests/test_cran.py:208: AttributeError