-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpytest.ini
37 lines (37 loc) · 1.07 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]
minversion = 6.0
DJANGO_SETTINGS_MODULE=skillforge.settings.test
testpaths = tests
addopts =
# Pass as opts
# https://github.com/pytest-dev/pytest-django/issues/673
--ds=skillforge.settings.test
# Disable migrations
--no-migrations
# log sys logs
--capture=sys
# --reuse-db
--verbose
# exit at first fail
--exitfirst
# use ipdb instead of pdb
--pdbcls=IPython.terminal.debugger:Pdb
# unknown marks trigger errors
--strict-markers
# show extra info on xfailed, xpassed, and skipped tests
# -rxXs
# omitted dirs/files
--ignore-glob=**/scripts/**
# https://docs.pytest.org/en/7.1.x/explanation/goodpractices.html#choosing-a-test-layout-import-rules
# allow same file names in different dirs
--import-mode=importlib
python_files =
test_*.py
filterwarnings =
# Ignore 3rd party deprecation warnings
ignore::DeprecationWarning
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
current: current working tests
e2e: End-to-End tests
external: 3rd party calls