self = <swh.model.tests.test_cli.TestIdentify testMethod=test_hide_filename>
def test_hide_filename(self):
"""filename is hidden upon request"""
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", "--no-filename", path]
)
> self.assertSWHID(result, "swh:1:cnt:" + hash_to_hex(content["sha1_git"]))
.tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_cli.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_cli.py:29: in assertSWHID
self.assertEqual(result.output.split()[0], swhid)
E AssertionError: 'swh:1:cnt:34973274ccef6ab4dfaaf86599792fa9c3fe4689' != 'swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd'
E - swh:1:cnt:34973274ccef6ab4dfaaf86599792fa9c3fe4689
E + swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd
TEST RESULT
TEST RESULT
- Run At
- Apr 30 2021, 12:26 PM