mirror of
https://github.com/pi-hole/FTL.git
synced 2026-07-01 04:45:38 +01:00
e189c8e823
Add the pytest test files and final BATS suite that were described
in the previous commit but not yet included.
New files:
test/api/conftest.py — shared fixtures (api_session, openapi, ftl)
test/api/pytest.ini — pytest configuration
test/api/test_api.py — HTTP errors, config validation, search,
history, lists, queries, Lua pages
test/api/test_openapi.py — OpenAPI spec validation, teleporter
test/api/test_z_auth.py — auth workflow (app password, login,
rate limiting, password removal)
test/test_final.bats — log validation, config rotation counts,
FTL termination
Signed-off-by: Dominik <dl6er@dl6er.de>
6 lines
97 B
INI
6 lines
97 B
INI
[pytest]
|
|
testpaths = .
|
|
python_files = test_*.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|