(fixtures)
| 161 | |
| 162 | @pytest.mark.e2e |
| 163 | def 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 |
nothing calls this directly
no test coverage detected