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
-10
View File
@@ -89,16 +89,6 @@ def test_invalid_value_names_the_config_key(monkeypatch: pytest.MonkeyPatch, rou
group(ctx).get_command(ctx, "EXAMPLE")
def test_resolved_service_does_not_route_the_next(monkeypatch: pytest.MonkeyPatch, routed: list) -> None:
"""Help and shell completion call get_command for every service on the context that resolved one."""
monkeypatch.setattr(config, "services", {"EXAMPLE": {"dl": {"remote": True}}})
ctx = make_ctx(dl.cli)
group(ctx).resolve_command(ctx, ["EXAMPLE", "title"])
assert ctx.params["remote"] is True
group(ctx).get_command(ctx, "OTHER")
assert routed == [("remote", None), ("local", None)]
def test_import_ignores_service_remote(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setattr(config, "services", {"EXAMPLE": {"dl": {"remote": True}}})
monkeypatch.setattr(Services, "make_import_command", staticmethod(lambda tag, ctx: click.Command(tag)))