Skip to content

Skip selenium e2e helpers at collection when their deps are missing (#24) - #25

Merged
thorwhalen merged 2 commits into
masterfrom
fix/24-test-collection
Oct 14, 2026
Merged

thorwhalen merged 2 commits into
masterfrom
fix/24-test-collection

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Closes #24.

streamlitfront/tests/common.py and use_case_test_old.py import selenium/webdriver_manager/strand (listed in tests/test_requirements.txt, not installed by CI or the dependents gate), so the gate's pytest --doctest-modules died at collection (2 errors). The package tests/conftest.py now sets collect_ignore for them when those deps (or front.tests.test_use_case) are not importable. With the deps installed nothing is ignored.

Verified from the package folder (where the gate collects): master 2 collection errors, branch 20 passed.

Adversarial review (fresh Opus): sound, no blocking problems. Two notes taken: the importable check now covers only the real e2e deps (selenium, webdriver_manager, strand, and front.tests.test_use_case for the old test) and is ImportError-safe. Accepted trade-off: a genuine import break in those two files is skipped when a dep is missing.

🤖 Generated with Claude Code

thorwhalen and others added 2 commits October 14, 2026 00:13
)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…error-safe (#24)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@thorwhalen
thorwhalen merged commit 776fb20 into master Oct 14, 2026
12 checks passed
@thorwhalen
thorwhalen deleted the fix/24-test-collection branch October 14, 2026 00:17
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.

tests/common.py and tests/use_case_test_old.py fail collection (breaks the dependents gate)

1 participant