Refactor UI assets and harden quality checks

This commit is contained in:
StasonJatham committed 2026-06-17 23:18:00 +02:00
1 parent 23ab466c52
commit 4ecc8eb874
62 files changed
+3314 -3206

No files matched your search

+5 -4
View File
@@ -2,7 +2,6 @@ import asyncio
import logging
import sqlite3
import time
from contextlib import contextmanager
from datetime import UTC, datetime, timedelta
from pathlib import Path
@@ -324,10 +323,8 @@ def test_rate_limit_flush_requeues_counts_after_database_failure(
original_connect = store.connect
@contextmanager
def fail_connect():
raise RuntimeError("database temporarily unavailable")
yield
monkeypatch.setattr(store, "connect", fail_connect)
with pytest.raises(RuntimeError, match="database temporarily unavailable"):
@@ -416,7 +413,11 @@ def test_scheduled_cleanup_failure_is_logged(tmp_path: Path, monkeypatch, caplog
def test_scheduler_loop_survives_iteration_exception(tmp_path: Path, monkeypatch, caplog) -> None:
settings = DdnsSettings(database_path=tmp_path / "ddns.sqlite3", admin_password="admin", cleanup_interval_seconds=60)
settings = DdnsSettings(
database_path=tmp_path / "ddns.sqlite3",
admin_password="admin",
cleanup_interval_seconds=60,
)
store = DdnsStore(settings.database_path)
calls = 0