From f3ed1b85d0416554d4b3d4afd3b2789a780d37d7 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Wed, 3 Jun 2026 21:52:54 +0200 Subject: [PATCH] test: switch pytest to importlib import mode --- surfsense_backend/pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/surfsense_backend/pyproject.toml b/surfsense_backend/pyproject.toml index 8fe4081b5..492569c95 100644 --- a/surfsense_backend/pyproject.toml +++ b/surfsense_backend/pyproject.toml @@ -195,10 +195,11 @@ asyncio_mode = "auto" asyncio_default_fixture_loop_scope = "session" asyncio_default_test_loop_scope = "session" testpaths = ["tests"] +pythonpath = ["."] python_files = ["test_*.py"] python_classes = ["Test*"] python_functions = ["test_*"] -addopts = "-v --tb=short -x --strict-markers -ra --durations=5" +addopts = "-v --tb=short -x --strict-markers -ra --durations=5 --import-mode=importlib" markers = [ "unit: pure logic tests, no DB or external services", "integration: tests that require a real PostgreSQL database"