forked from kenzuya/unshackle
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user