Answer prose round 1: 0 🔴, 4 🟡 (0 misread); 0 🔴, 4 🟡 (0 misread); reword the README entry, the Re-entry exception, item 392 and five comments
CI / tests (pull_request) Successful in 4m58s
CI / tests (pull_request) Successful in 4m58s
This commit is contained in:
@@ -41,7 +41,7 @@ def tool_for(path: str) -> str | None:
|
||||
|
||||
|
||||
def is_test(path: str) -> bool:
|
||||
"""Whether path is a test by its name or folder alone, as pytest, Go, PHPUnit, `node --test` or a `tests` folder tells it."""
|
||||
"""Whether path is a test by its name or folder alone, as pytest, Go, PHPUnit or `node --test` finds one, or by a folder in TEST_FOLDERS."""
|
||||
folders, name = posixpath.split(path)
|
||||
return bool(TEST_FOLDERS & set(folders.split("/")) or TEST_NAME.fullmatch(name))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user