SWS-12500-custom-component/pytest.ini

16 lines
655 B
INI

# Pytest configuration for the sws12500 Home Assistant custom component.
#
# The suite is written against these settings; without them a clean clone
# collects the async tests but never awaits them. Kept as a standalone
# pytest.ini for the same reason the ruff config lives in ruff.toml: one
# tool, one tracked file, no package metadata this repository does not need.
[pytest]
testpaths = tests
# Most async tests carry no @pytest.mark.asyncio marker, so pytest-asyncio's
# default strict mode would skip awaiting them. Auto mode treats every async
# test function as an asyncio test.
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function