self = <swh.model.tests.test_cli.TestIdentify testMethod=test_show_filename>
def test_show_filename(self):
"""filename is shown by default"""
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.assertEqual(result.exit_code, 0)
self.assertEqual(
result.output.rstrip(),
> "swh:1:cnt:%s\t%s" % (hash_to_hex(content["sha1_git"]), path.decode()),
)
E AssertionError: 'swh:1:cnt:34973274ccef6ab4dfaaf86599792fa9c3fe4689\[34 chars]file' != 'swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd\[34 chars]file'
E - swh:1:cnt:34973274ccef6ab4dfaaf86599792fa9c3fe4689 /tmp/swh.model.from_disko4sokgh4/file
E + swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd /tmp/swh.model.from_disko4sokgh4/file
.tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_cli.py:115: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 30 2021, 12:26 PM