Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/specify_cli/integrations/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,14 @@ def test_bad_option_token_with_rich_markup_exits_cleanly(self):
["integration", "upgrade", "--help"],
],
)
def test_script_help_includes_python_variant(args):
@pytest.mark.parametrize("terminal_width", [60, 80, 120])
def test_script_help_includes_python_variant(args, terminal_width, monkeypatch):
monkeypatch.setattr("typer.rich_utils.MAX_WIDTH", terminal_width)
result = runner.invoke(app, args)

assert result.exit_code == 0
assert "sh, ps, or py" in " ".join(strip_ansi(result.output).split())
help_text = strip_ansi(result.output).replace("\u2502", " ")
assert "sh, ps, or py" in " ".join(help_text.split())


class TestIntegrationProjectGuards(IntegrationCatalogCliTestBase):
Expand Down
Loading