-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpytest.toml
More file actions
24 lines (21 loc) · 785 Bytes
/
Copy pathpytest.toml
File metadata and controls
24 lines (21 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[pytest]
addopts = [
# disable all of default log capture: structlog does this for us
"-p no:logging",
"--capture=no",
"--import-mode=importlib",
"--structlog-output=tmp/test-results/test-logs",
]
filterwarnings = [
# avoid depreciation warnings causing spammy logs
"ignore::DeprecationWarning",
# raise level of these errors
"error:RuntimeWarning",
]
# by default, pytest seems to hijack many logs and output them to the terminal
testpaths = ["tests"]
# if there are specific directories that contain other projects that you want to skip, add them here
norecursedirs = ["tmp", "pypi"]
# TODO right now this option does not enable us to get it directly
asyncio_default_test_loop_scope = "function"
asyncio_default_fixture_loop_scope = "function"