mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
test: switch pytest to importlib import mode
This commit is contained in:
parent
75b37bb8d4
commit
f3ed1b85d0
1 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue