-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
57 lines (53 loc) · 2.18 KB
/
pytest.ini
File metadata and controls
57 lines (53 loc) · 2.18 KB
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
[pytest]
testpaths = src
pythonpath = src
python_files = tests.py test_*.py *_tests.py
junit_family=legacy
env =
DJANGO_ALLOW_ASYNC_UNSAFE=1
addopts =
--ignore=dist --ignore=build --ignore=node_modules --ignore=src/django_bpp/staticroot/ --ignore=src/ewaluacja2021/tests/
--reuse-db
#--cov=src/
#--cov-branch
#--cov-append
#--cov-report term-missing:skip-covered
--cov-report=""
#--cov-report html:cov_html
#--cov-report xml:cov.xml
-l
#--durations=30
--maxfail 50
--timeout 90
--ds=django_bpp.settings.local
--only-rerun TimeoutError
--only-rerun TimeoutException
--only-rerun ElementClickInterceptedException
--only-rerun ElementDoesNotExist
--only-rerun OperationalError
--dist=worksteal
filterwarnings =
default
# Third-party noise we cannot fix:
ignore::DeprecationWarning:pkg_resources
ignore::DeprecationWarning:django_filters
ignore::UserWarning:dbtemplates
# django-fsm 3.0 is a tombstone release; migration to viewflow.fsm tracked separately:
ignore:.*django-fsm.*viewflow.*:UserWarning:django_fsm
# pbn_api test data often lacks current_version; not actionable:
ignore:.*has NO current_version.*:UserWarning
# FORMS_URLFIELD_ASSUME_HTTPS is an intentional opt-in for Django 6.0
# behaviour; to be removed together with the setting on 6.0 upgrade.
ignore:.*FORMS_URLFIELD_ASSUME_HTTPS.*:DeprecationWarning
# pyoai 2.5.0 (infrae/pyoai) nadal woła datetime.utcnow()
# w oaipmh/server.py; nie mamy forku — zgłoszenie upstream.
ignore:.*datetime\.datetime\.utcnow.*:DeprecationWarning:oaipmh\.server
# webtest 3.0.7 nadal używa bs4.findAll w forms.py:436 (zamiast
# find_all); nie mamy forku — zgłoszenie upstream (Pylons/webtest).
ignore:.*findAll.*:DeprecationWarning:webtest\.forms
norecursedirs = src/bpp/media/ .worktrees
markers =
serial: test musi byc wykonany sekwencyjnie (nie moze byc uruchomiony rownolegle z innymi testami)
xdist_group: grupuje testy do wykonania na tym samym workerze w pytest-xdist (uzywa pytest-xdist)
slow: wolne testy, pomijane przy szybkim przebiegu
playwright: testy wymagajace przegladarki (Playwright)