forked from gbowne1/json-maestro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pytest.ini
53 lines (44 loc) · 1.14 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
[pytest]
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Verbosity and output
addopts =
--verbose
--capture=no
--showlocals
--tb=auto
--durations=5
# Warnings
filterwarnings =
error
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
# Markers
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
integration: marks integration tests
unit: marks unit tests
# Coverage settings
# Uncomment the following lines if you're using pytest-cov
addopts =
--cov=jsonmaestro
--cov-report=html
# Logging
log_cli = True
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Disable cacheprovider to ensure tests always run
cache_dir = /dev/null
# Parallel execution (if you have pytest-xdist installed)
# addopts = -n auto
# Custom options
minversion = 6.0
required_plugins = pytest-cov pytest-mock
# Environment variables
env =
DATABASE_URL=sqlite:///test_db.sqlite
DEBUG=True