-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
38 lines (36 loc) · 1.05 KB
/
pytest.ini
File metadata and controls
38 lines (36 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[pytest]
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
markers =
asyncio: marks tests as async (needed for pytest-asyncio compatibility)
enable_socket: marks tests as requiring socket access
addopts =
-v
# -p no:socket
# Explicitly load pytest-cov since sitecustomize disables auto plugin discovery
-p pytest_cov
# Explicitly load pytest-homeassistant-custom-component (entry point name)
# -p pytest_homeassistant_custom_component
-p pytest_asyncio
--disable-warnings
#--maxfail=1 # Uncomment to stop after first failure
--strict-markers
# Coverage flags are set in CI workflow; keep pytest.ini generic for local runs
[coverage:run]
source = custom_components.fmd
omit =
*/tests/*
*/__pycache__/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod