File, billing, and activity-log tests
File, billing, and activity-log tests
This page groups the tests that prove the non-document settings and admin surfaces.
File handling
tests/integration/test_file_management.pytests/unit/storage/test_azure_storage.pytests/unit/storage/test_virus_scan_integration.py
These cover upload behavior, storage abstraction, and storage-specific integration rules.
Billing
Billing tests live in the general unit/integration suites and should cover:
- tenant membership requirements
- usage aggregation from processing records
- invoice list and PDF contract
- payment-method read/write behavior
Activity logs
Activity-log tests should prove:
- manager/admin access rules
- list filtering and pagination
- filter-option generation
- stats and detail endpoints
- archived log exclusion
Minimal validation
Use the smallest route-specific test first. If the change crosses billing plus tenancy or logs plus permissions, add the corresponding contract tests in the same run.