chore: add backend pytest.ini to silence deprecation warning and configure asyncio fixture scope
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
[pytest]
|
||||||
|
# Tests share a session-scoped SQLite DB; run sequentially (no -n / no xdist).
|
||||||
|
# asyncio_mode silences the pytest-asyncio deprecation warning that causes
|
||||||
|
# PowerShell to report exit code 1 even when all tests pass.
|
||||||
|
asyncio_mode = strict
|
||||||
|
asyncio_default_fixture_loop_scope = function
|
||||||
|
filterwarnings =
|
||||||
|
ignore::pytest.PytestDeprecationWarning
|
||||||
|
|
||||||
Reference in New Issue
Block a user