Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
[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 4 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
# pathspec
# Airflow's `.airflowignore` handling uses the deprecated `GitWildMatchPattern`
# from pathspec 1.x. Warning in dependency, nothing we can do
filterwarnings=
error::DeprecationWarning
error::airflow.exceptions.RemovedInAirflow4Warning
ignore:GitWildMatchPattern \('gitwildmatch'\) is deprecated:DeprecationWarning
ignore:.*is deprecated and will be (remoevd|removed) in Flask 2.[0-9].:DeprecationWarning
ignore:datetime.datetime.utcnow:DeprecationWarning:botocore
ignore::DeprecationWarning:marshmallow.*
# 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