test: give collection database URL one cleanup owner

This commit is contained in:
Alexandre Teixeira
2026-10-29 17:30:10 +00:00
parent aa2db8d87c
commit fe81c491cd
4 changed files with 24 additions and 9 deletions
-1
View File
@@ -34,7 +34,6 @@ def test_runtime_restores_environment_and_removes_files(monkeypatch, tmp_path, f
path = Path(os.environ[name])
assert path.is_dir() and path.is_relative_to(root)
(path / "owned").write_text("test")
assert os.environ["DATABASE_URL"] == f"sqlite:///{root / 'collection.db'}"
assert Path(tempfile.gettempdir()).is_relative_to(root)
if fail:
raise RuntimeError("test failure")