forked from WordPress/openverse-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pytest.ini
37 lines (37 loc) · 1.88 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
33
34
35
36
37
[pytest]
#### Descriptions ####
# FLAKY
# https://github.com/box/flaky#shorter-flaky-report
# no-success-flaky-report: Suppress successful flaky tests
# XDIST
# https://pypi.org/project/pytest-xdist/#running-tests-across-multiple-cpus
# numprocesses: number of test workers to spin up
# dist: how to distribute tests across workers
# SOCKET
# https://github.com/miketheman/pytest-socket#usage
# disable-socket: turn off socket access by default to prevent HTTP requests during tests
# allow-unix-socket: allow system sockets (e.g. async) to be used
addopts =
--no-success-flaky-report
--numprocesses auto
--dist loadscope
--disable-socket
--allow-unix-socket
# SMTP
# This occurs because the default config is loaded when running `just test --extended`
# which happens to still have SMTP credential defaults assigned in it. We do not set
# these anywhere in the dev stack so it can be safely ignored.
# Subdag
# This appears to be coming from Airflow internals during testing as a result of
# loading the example DAGs:
# /usr/local/airflow/.local/lib/python3.10/site-packages/airflow/example_dags/example_subdag_operator.py:43: RemovedInAirflow3Warning
# distutils
# Warning in dependency, nothing we can do
# flask
# Warning in dependency, nothing we can do
# "removed"/"remoevd" is due to https://github.com/pallets/flask/pull/4757
filterwarnings=
ignore:Fetching SMTP credentials from configuration variables will be deprecated in a future release. Please set credentials using a connection instead:airflow.exceptions.RemovedInAirflow3Warning
ignore:This class is deprecated. Please use `airflow.utils.task_group.TaskGroup`.:airflow.exceptions.RemovedInAirflow3Warning
ignore:distutils Version classes are deprecated. Use packaging.version instead:DeprecationWarning
ignore:.*is deprecated and will be (remoevd|removed) in Flask 2.3.:DeprecationWarning