From 3b8c60ac1ef41199d946879a2a967cadf72ea745 Mon Sep 17 00:00:00 2001 From: Alexandre Teixeira Date: Thu, 29 Oct 2026 17:49:45 +0000 Subject: [PATCH] test: check database ownership against the private temp namespace --- tests/test_database_test_isolation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_database_test_isolation.py b/tests/test_database_test_isolation.py index 7540f72b0..308ff18ec 100644 --- a/tests/test_database_test_isolation.py +++ b/tests/test_database_test_isolation.py @@ -85,6 +85,7 @@ def test_actual_tests_restore_process_state_and_ignore_inherited_database(tmp_pa import os import sys import pytest + import tempfile from pathlib import Path from sqlalchemy.engine import make_url @@ -113,7 +114,7 @@ def test_actual_tests_restore_process_state_and_ignore_inherited_database(tmp_pa self.default_path = Path(make_url(self.initial[0]).database) assert self.default_path.is_file() assert self.default_path.name == "collection.db" - assert self.default_path.parent == Path(os.environ["ODYSSEUS_DATA_DIR"]).parent + assert self.default_path.parent == Path(tempfile.gettempdir()).parent def pytest_collection_finish(self): assert snapshot() == self.initial, "collection changed database bindings"