Page MenuHomeSoftware Heritage

Jenkins > .tox.py3-full.lib.python3.7.site-packages.swh.model.tests.test_identifiers.RawExtrinsicMetadataIdentifier::test_epoch
Failed

TEST RESULT

Run At
Apr 30 2021, 11:31 AM
Details
self = <swh.model.tests.test_identifiers.RawExtrinsicMetadataIdentifier testMethod=test_epoch> def test_epoch(self): metadata = { **self.minimal, "discovery_date": datetime.datetime( 1970, 1, 1, 0, 0, 0, tzinfo=datetime.timezone.utc, ), } manifest = ( b"raw_extrinsic_metadata 201\0" b"target swh:1:cnt:568aaf43d83b2c3df8067f3bedbb97d83260be6d\n" b"discovery_date 0\n" b"authority forge https://forge.softwareheritage.org/\n" b"fetcher swh-phabricator-metadata-fetcher 0.0.1\n" b"format json\n" b"\n" b'{"foo": "bar"}' ) self.assertEqual( > identifiers.raw_extrinsic_metadata_manifest(metadata), manifest, ) E AssertionError: b'target swh:1:cnt:568aaf43d83b2c3df8067f3b[162 chars]ar"}' != b'raw_extrinsic_metadata 201\x00target swh:[192 chars]ar"}' .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_identifiers.py:1014: AssertionError