Answer stability round 1: 0 🔴, 1 🟡 (0 misread); list conftest.py in the help
This commit is contained in:
@@ -205,7 +205,7 @@ def keep_rust_tests(planted_file: str, target: str) -> None:
|
||||
|
||||
|
||||
def of_tests(path: str, rust_tests: typing.AbstractSet[str] = frozenset()) -> bool:
|
||||
"""Whether path is a test by its path alone, as `is_test_file` tells it, or one of rust_tests."""
|
||||
"""Whether path is a test by its path alone, or one of rust_tests."""
|
||||
return is_test_file(path) or "testdata" in pathlib.PurePath(path).parts or path in rust_tests
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user