From 594407d404c34be77b8b5e78e194b4e7978b78fd Mon Sep 17 00:00:00 2001 From: Atharv1705 Date: Fri, 13 Nov 2026 13:15:33 +0530 Subject: [PATCH] chore: add backend pytest.ini to silence deprecation warning and configure asyncio fixture scope --- backend/pytest.ini | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 backend/pytest.ini diff --git a/backend/pytest.ini b/backend/pytest.ini new file mode 100644 index 0000000..18187b6 --- /dev/null +++ b/backend/pytest.ini @@ -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 +