🔊 Resume conf.json au demarrage (services configures visibles dans les logs)

This commit is contained in:
Orionis312050 committed 2026-10-11 21:27:26 +00:00
1 parent 514f417c15
commit 23132c6219
2 files changed
+34

No files matched your search

+13
View File
@@ -186,3 +186,16 @@ def test_setup_link_only_without_existing_account() -> None:
json={"token": "peu-importe", "username": "autre", "password": "z"},
)
assert response.status_code == 403
def test_startup_logs_conf_json_summary(capsys) -> None:
"""Au lancement, le log indique si conf.json est charge et ce qu'il contient."""
with TestClient(app) as client:
client.put(
"/api/settings/qbittorrent",
json={"url": "192.168.1.50", "port": 8555},
)
with TestClient(app):
captured = capsys.readouterr()
assert "conf.json charge" in captured.out
assert "qbittorrent (bypass d'authentification)" in captured.out