-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
40 lines (33 loc) · 895 Bytes
/
pytest.ini
File metadata and controls
40 lines (33 loc) · 895 Bytes
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
[pytest]
# Settings path
DJANGO_SETTINGS_MODULE = backend.config.settings
# For apps imports
pythonpath = . backend
# Where to look for tests
testpaths = backend/apps
# Test filenames
python_files = tests.py test_*.py *_tests.py
# Django will try to reuse db instead of creating one, no migrations issues
# --reuse-db use it only locally
addopts =
-v
--strict-markers
--tb=short
--cov=backend
--cov-report=term-missing
--cov-fail-under=80
# pytest-env allows creation of env for test purpose
env =
DEBUG=False
markers:
unit: logic tests
view: template and view test
token: test token obtain
posts: current user posts
comments: comments created by current user
user: current user data
health: health check
follow: current user follows
like: current user likes
search: other users search
feed: feed and its actions