test: delete slow, timing-based and redundant tests

This commit is contained in:
imSp4rky
2026-12-05 15:20:05 -07:00
parent 783a2fc185
commit 3a0a74e694
292 changed files with 153 additions and 15174 deletions
@@ -74,15 +74,6 @@ def test_preferences_alone_are_no_identity(monkeypatch: pytest.MonkeyPatch) -> N
assert built["keys"]["client_identity"] is False
def test_a_service_that_lists_preferences_as_an_identity_still_merges_them(monkeypatch: pytest.MonkeyPatch) -> None:
class Listed:
CLIENT_CONFIG = ("esn", "preferences")
built = launched(monkeypatch, Licensor.SERVER_CDM, {"preferences": {"language": "ja-JP"}}, Listed)
assert built["config"]["preferences"] == {"language": "ja-JP", "profile": 0}
def test_a_lent_device_keeps_the_client_preferences(monkeypatch: pytest.MonkeyPatch) -> None:
built = launched(monkeypatch, Licensor.CLIENT_DEVICE, {"preferences": CLIENT, "esn": "CLIENT"}, Identity)
@@ -107,14 +98,6 @@ def test_ill_formed_preferences_are_refused(monkeypatch: pytest.MonkeyPatch, sup
launched(monkeypatch, Licensor.SERVER_CDM, supplied)
def test_the_identity_rules_stay_as_they_are() -> None:
merged, identity = handlers.client_config_overlay({"esn": "SERVER", "Kph": "k"}, ("esn", "Kph"), {"esn": "CLIENT"})
assert (merged, identity) == ({"esn": "CLIENT"}, True)
with pytest.raises(APIError):
handlers.client_config_overlay({}, ("esn",), {"esn": True})
def test_the_client_reads_its_own_preferences(
monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture
) -> None: