refactor(core): move login state to core.login and load key vaults through one factory

This commit is contained in:
imSp4rky
2026-11-25 15:31:37 -07:00
parent 5ba0a5474c
commit fba28198d0
14 changed files with 359 additions and 249 deletions
+2 -2
View File
@@ -64,8 +64,8 @@ def seen(tmp_path, monkeypatch):
monkeypatch.setattr(handlers, "resolve_server_account", lambda *args: None)
monkeypatch.setattr(handlers, "load_full_cdm", lambda *args: None)
monkeypatch.setattr(handlers.Services, "load", staticmethod(lambda service: module))
monkeypatch.setattr("unshackle.commands.dl.dl.get_cookie_jar", staticmethod(lambda service, profile: None))
monkeypatch.setattr("unshackle.commands.dl.dl.get_credentials", staticmethod(lambda service, profile: None))
monkeypatch.setattr("unshackle.core.login.get_cookie_jar", lambda service, profile: None)
monkeypatch.setattr("unshackle.core.login.get_credentials", lambda service, profile: None)
return _CacheService.seen