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:58 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/tmpunly1que')>() E + where <bound method Path.exists of PosixPath('/tmp/tmpunly1que')> = PosixPath('/tmp/tmpunly1que').exists E + where PosixPath('/tmp/tmpunly1que') = Path('/tmp/tmpunly1que') E + where '/tmp/tmpunly1que' = <tempfile._TemporaryFileWrapper object at 0x7f63b9f0ab38>.name .tox/py3/lib/python3.7/site-packages/swh/fuse/tests/test_cli.py:33: AssertionError