-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
34 lines (28 loc) · 806 Bytes
/
pytest.ini
File metadata and controls
34 lines (28 loc) · 806 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
[pytest]
# Pytest configuration for OSPF
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Output options
addopts =
-v
--tb=short
--strict-markers
--disable-warnings
# Coverage options (when using pytest-cov)
# addopts = --cov=api --cov=app --cov-report=html --cov-report=term-missing
# Markers
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
integration: marks tests as integration tests
unit: marks tests as unit tests
api: marks tests for API endpoints
web: marks tests for web controllers
models: marks tests for database models
# Environment variables for testing
env =
FLASK_ENV=testing
DATABASE_URL=postgresql://localhost/ospf_test