-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
15 lines (14 loc) · 851 Bytes
/
Copy pathpytest.ini
File metadata and controls
15 lines (14 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# SPDX-FileCopyrightText: 2026 The IndustryFlow contributors
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# Repo-wide pytest configuration. Every suite is invoked from the repository root
# (`pytest services/<svc>/tests`), so this is the one place the asyncio settings are declared.
#
# WHY THIS FILE EXISTS: pytest-asyncio 1.x removed the `event_loop` fixture hook. Overriding that
# fixture used to be how a suite widened the loop's scope (services/ml_service/tests/conftest.py did
# exactly that, at session scope). An override is now ignored rather than honoured, so the scope has
# to be stated as configuration or it silently reverts to per-test loops. Leaving it unset is not
# neutral either — pytest-asyncio warns and reserves the right to change the default.
[pytest]
asyncio_mode = strict
asyncio_default_fixture_loop_scope = function