Skip to content

Drop a duplicated CLI invocation from test_create_databases_cli - #1550

Open
adamtheturtle wants to merge 1 commit into
mainfrom
adamtheturtle/vws-web-tools-issue-1507
Open

Drop a duplicated CLI invocation from test_create_databases_cli#1550
adamtheturtle wants to merge 1 commit into
mainfrom
adamtheturtle/vws-web-tools-issue-1507

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Closes #1507.

First, the premise: there is no documented Windows timeout. grep -rn Windows tests src docs finds nothing outside a trove classifier in pyproject.toml, and git log -S Windows -- tests/ finds no comment that was ever there and removed. test_create_databases_cli also passed on windows-latest on both 3.12 and 3.13 in the last full CI run (2026-07-30). So I have not added a retry or a skip: there is no evidence of a Windows-specific failure to guard against, and an unconditional retry or skip on the one test that exercises the whole CLI end to end would hide real breakage.

What is true is that this is the slowest test in the suite, which is what makes it the one most likely to run out of time. Every runner.invoke in it starts a fresh Chrome and logs in — it did that four times.

Its first invocation was show-license-details in YAML form against cli_license_name, asserting the name and the key. test_show_license_details_cli does exactly that, on the same fixture, with the same assertions, and also covers --env-var-format. So it was a full browser launch and login for assertions already made elsewhere. Removing it takes the test from four browser sessions to three, and the docstring now says why to think twice before adding a fourth.

Nothing is lost from coverage: show_license_details and both of its output formats stay covered by test_show_license_details_cli.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM

Closes #1507

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_create_databases_cli documents Windows timeout but no retry/skip guard in test

1 participant