- Add size boundary tests: 1B, 1KB, 10KB, 100KB, 1MB, 5MB, 10MB, 50MB - Add large file tests (100MB-1GB) marked with @pytest.mark.large - Add chunk boundary tests at 64KB boundaries - Add concurrent upload/download tests (2, 5, 10 parallel) - Add data integrity tests (binary, text, unicode, compressed) - Add generate_content() and sized_content fixture for test helpers - Add @pytest.mark.large and @pytest.mark.concurrent markers - Fix Content-Disposition header encoding for non-ASCII filenames (RFC 5987)
32 lines
816 B
INI
32 lines
816 B
INI
[pytest]
|
|
testpaths = tests
|
|
python_files = test_*.py
|
|
python_functions = test_*
|
|
python_classes = Test*
|
|
asyncio_mode = auto
|
|
addopts = -v --tb=short --cov=app --cov-report=term-missing --cov-report=html:coverage_html --cov-fail-under=0
|
|
filterwarnings =
|
|
ignore::DeprecationWarning
|
|
ignore::UserWarning
|
|
markers =
|
|
unit: Unit tests (no external dependencies)
|
|
integration: Integration tests (require database/storage)
|
|
slow: Slow tests (skip with -m "not slow")
|
|
large: Large file tests (100MB+, skip with -m "not large")
|
|
concurrent: Concurrent operation tests
|
|
|
|
# Coverage configuration
|
|
[coverage:run]
|
|
source = app
|
|
omit =
|
|
*/tests/*
|
|
*/__pycache__/*
|
|
|
|
[coverage:report]
|
|
exclude_lines =
|
|
pragma: no cover
|
|
def __repr__
|
|
raise NotImplementedError
|
|
if __name__ == .__main__.:
|
|
pass
|