✨ UI dynamique (couleurs par etat, spinner, terminal de conversion live, restes de conversion, liens MKV), responsive, scan ISO par contenu, retrait Sonarr/Prowlarr/Jellyfin/Seerr
This commit is contained in:
1 parent
078905e944
commit
70ce0b95a8
20 files changed
+793
-1143
No files matched your search
@@ -80,15 +80,27 @@ def test_db_migration_fresh_database(tmp_path) -> None:
|
||||
def test_conf_file_stamped_with_version() -> None:
|
||||
"""Un conf.json d'avant le systeme (sans cle version) est charge tel quel
|
||||
et estampille avec la version courante."""
|
||||
write_raw_config({"radarr": {"url": "http://radarr:7878", "api_key": "k"}})
|
||||
write_raw_config(
|
||||
{
|
||||
"radarr": {"url": "http://radarr:7878", "api_key": "k"},
|
||||
"sonarr": {"url": "http://sonarr:8989", "api_key": "k"},
|
||||
"jellyfin": {"url": "http://jf:8096"},
|
||||
}
|
||||
)
|
||||
|
||||
applied = migrate_conf_file()
|
||||
|
||||
assert applied == []
|
||||
# v1 -> v2 retire les services hors perimetre, puis etampille la version.
|
||||
assert applied == ["conf.json v1 -> v2"]
|
||||
raw = json.loads(config_path().read_text(encoding="utf-8"))
|
||||
assert raw["version"] == current_conf_version()
|
||||
assert raw["radarr"]["url"] == "http://radarr:7878"
|
||||
assert raw["radarr"]["api_key"] == "k"
|
||||
assert "sonarr" not in raw
|
||||
assert "jellyfin" not in raw
|
||||
|
||||
# Deja a jour: plus rien a appliquer.
|
||||
assert migrate_conf_file() == []
|
||||
|
||||
|
||||
def test_conf_migration_transforms_content(monkeypatch) -> None:
|
||||
|
||||
Reference in new issue
Block a user