-
Notifications
You must be signed in to change notification settings - Fork 0
/
pytest.ini
32 lines (24 loc) · 1.15 KB
/
pytest.ini
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
[pytest]
addopts:
# Verbosity
# 0 - hide test names while running (only showing ".", "F", etc)
# 1 - show full test names while running
# 2 - don't truncate assertion failure printouts (includes full diffs)
--verbosity=2
# Show an abbreviated traceback format
--tb=short
# Only find tests underneath the tests/ directory
testpaths = tests
# Only search for tests within files matching these patterns
python_files = tests.py test_*.py
# Discover tests within classes matching these patterns
# NOTE: the [A-Z]'s ensure only CamelCase boundaries are matched
python_classes = Test[A-Z]* Describe[A-Z]* Context[A-Z]* With[A-Z]* Without[A-Z]* For[A-Z]* When[A-Z]* If[A-Z]* Case[A-Z]*
# Only methods matching these patterns are considered tests
python_functions = test_* it_* its_*
# Automatically add the @pytest.mark.asyncio decorator to all async tests
# and manage async fixtures without using @pytest_asyncio.fixture
asyncio_mode = auto
filterwarnings =
# Ignore impending doom (after pytest 9.0) for pytest-fixture-order's fixture marks
ignore:Marks applied to fixtures have no effect.*:_pytest.warning_types.PytestRemovedIn9Warning::