MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / test_async_cleanup

Function test_async_cleanup

tests/test_cli.py:163–176  ·  view source on GitHub ↗
(fixtures)

Source from the content-addressed store, hash-verified

161
162@pytest.mark.e2e
163def test_async_cleanup(fixtures):
164 from aura.uri_handlers import base
165
166 base.cleanup_locations()
167 tmp_dir = Path(tempfile.gettempdir())
168 before = set(tmp_dir.glob("aura_pkg__sandbox*"))
169 if before:
170 warnings.warn(f"tmp folder already contains aura leftovers! {tmp_dir}")
171
172 _ = fixtures.scan_test_file("mirror/wheel-0.34.2.tar.gz", args=["--async", "-a", "archive"])
173
174 # Make sure that the temp dir is properly cleaned up also when using async mode
175 leftovers = set(tmp_dir.glob("aura_pkg__sandbox*")) - before
176 assert len(leftovers) == 0, 0

Callers

nothing calls this directly

Calls 1

scan_test_fileMethod · 0.80

Tested by

no test coverage detected