We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_file.py
import pytest @pytest.mark.parametrize("bar", [1,2,3]) def test_foo(bar): print(bar)
The following invalid nodeid is accepted by pytest instead of printing an error
pytest
$ pytest "test_file.py[foobar]" -q ... [100%] 3 passed in 0.04s
Similar to specifying wrong path/dir/parameterized nodeid an error should be printed instead of running all the tests in the given file
$ pytest "test_file.py[foobar]" -q no tests ran in 0.01s ERROR: file or directory not found: test_hello.py[foobar]
The text was updated successfully, but these errors were encountered:
fix for pytest-dev#10273
7d192af
resolve_collection_argument no longer return an empty string when selection separator is specified to test name
Successfully merging a pull request may close this issue.
Test scenario
test_file.py
The following invalid nodeid is accepted by
pytest
instead of printing an errorExpected
Similar to specifying wrong path/dir/parameterized nodeid an error should be printed instead of running all the tests in the given file
The text was updated successfully, but these errors were encountered: