forked from WordPress/openverse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pytest.ini
67 lines (62 loc) · 2.63 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[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
# ==ERRORS==
# Deprecation warnings and Airflow 3 warnings should be treated as errors so we
# can address them as soon as possible
# ==IGNORATIONS==
# The following warnings are due to upstream dependencies and are not within our
# control to fix. We will ignore them for now.
# flask
# https://docs.sqlalchemy.org/en/20/errors.html#error-b8d9
# Warning in dependency, nothing we can do
# "removed"/"remoevd" is due to https://github.com/pallets/flask
# botocore
# https://github.com/boto/boto3/issues/3889
# Warning in dependency, nothing we can do
# marshmallow_sqlalchemy
# https://github.com/marshmallow-code/marshmallow/issues/2227
# Upstream dependency is fixed but Airflow constraints are keeping us on an
# older version
# elasticsearch
# https://github.com/apache/airflow/pull/41871
# Warning in upstream Airflow hook, fixed in the next version
filterwarnings=
error::DeprecationWarning
error::airflow.exceptions.RemovedInAirflow3Warning
ignore:.*is deprecated and will be (remoevd|removed) in Flask 2.3.:DeprecationWarning
ignore:datetime.datetime.utcnow:DeprecationWarning:botocore
ignore::DeprecationWarning:marshmallow.*
ignore:Importing from the 'elasticsearch.client' module is deprecated:DeprecationWarning:airflow.providers.elasticsearch.hooks.elasticsearch
# Change the pytest cache location since Docker cannot write within the module file
# structure due to permissions issues
# https://stackoverflow.com/a/56493748/3277713
cache_dir=/home/airflow/.cache/pytest
env =
AIRFLOW_VAR_API_KEY_BROOKLYN_MUSEUM=apikey
AIRFLOW_VAR_API_KEY_DATA_GOV=apikey
AIRFLOW_VAR_API_KEY_EUROPEANA=apikey
AIRFLOW_VAR_API_KEY_FLICKR=apikey
AIRFLOW_VAR_API_KEY_FREESOUND=apikey
AIRFLOW_VAR_API_KEY_JAMENDO=apikey
AIRFLOW_VAR_API_KEY_JUSTTAKEITFREE=apikey
AIRFLOW_VAR_API_KEY_NYPL=apikey
AIRFLOW_VAR_API_KEY_RAWPIXEL=apikey
AIRFLOW_VAR_API_KEY_THINGIVERSE=apikey
AIRFLOW_VAR_API_KEY_WALTERS_ART_MUSEUM=apikey