Skip to content

Fix the pytest example for selecting multiple component tests - #1793

Open
VictorMoni wants to merge 1 commit into
cloudflare:masterfrom
VictorMoni:docs/pytest-multiple-test-selection
Open

VictorMoni wants to merge 1 commit into
cloudflare:masterfrom
VictorMoni:docs/pytest-multiple-test-selection

Conversation

@VictorMoni

Copy link
Copy Markdown

Repeating -k only applies the final expression, so the guide silently skips the first requested test. Use a single quoted or expression with two existing logging test names.

Verified on test_logging.py with Python 3.10 and the pinned pytest 7.3.1 using --collect-only. The old form collected only test_logging_to_file (1 of 3). The replacement collected both test_logging_to_terminal and test_logging_to_file (2 of 3). git diff --check passed. The Go test and lint suites were not run locally for this documentation change.

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.

1 participant