Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.model.tests.test_cli.TestIdentify::test_content_id
Failed

TEST RESULT

Run At
Feb 16 2021, 2:43 PM
Details
self = <swh.model.tests.test_cli.TestIdentify testMethod=test_content_id> def test_content_id(self): """identify file content""" self.make_contents(self.tmpdir_name) for filename, content in self.contents.items(): path = os.path.join(self.tmpdir_name, filename) result = self.runner.invoke(cli.identify, ["--type", "content", path]) > self.assertSWHID(result, "swh:1:cnt:" + hash_to_hex(content["sha1_git"])) .tox/py3/lib/python3.7/site-packages/swh/model/tests/test_cli.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/model/tests/test_cli.py:27: in assertSWHID self.assertEqual(result.output.split()[0], swhid) E AssertionError: 'File' != 'swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd' E - File E + swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd