Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.fuse.tests.test_cli::test_clean_command
Failed

TEST RESULT

Run At
Dec 1 2020, 3:44 PM
Details
def test_clean_command(): fake_metadata_cache = NamedTemporaryFile(delete=False) fake_blob_cache = NamedTemporaryFile(delete=False) config = { "cache": { "metadata": {"path": fake_metadata_cache.name}, "blob": {"path": fake_blob_cache.name}, }, } with NamedTemporaryFile(suffix=".yml") as config_path: Path(config_path.name).write_text(yaml.dump(config)) CliRunner().invoke( cli.fuse, args=["--config-file", config_path.name, "clean",], ) > assert not Path(fake_metadata_cache.name).exists() E AssertionError: assert not True E + where True = <bound method Path.exists of PosixPath('/tmp/tmpt5kdshik')>() E + where <bound method Path.exists of PosixPath('/tmp/tmpt5kdshik')> = PosixPath('/tmp/tmpt5kdshik').exists E + where PosixPath('/tmp/tmpt5kdshik') = Path('/tmp/tmpt5kdshik') E + where '/tmp/tmpt5kdshik' = <tempfile._TemporaryFileWrapper object at 0x7efc75cf5780>.name .tox/py3/lib/python3.7/site-packages/swh/fuse/tests/test_cli.py:33: AssertionError