Rename the files in the test_cases directory; add further clarifications to the README (#8688)

This commit is contained in:
Alex Waygood
2022-09-06 06:50:24 +01:00
committed by GitHub
parent 189d1116d1
commit 51e8325c10
18 changed files with 20 additions and 15 deletions

View File

@@ -59,9 +59,9 @@ def check_stubs() -> None:
def check_test_cases() -> None:
assert_consistent_filetypes(Path("test_cases"), kind=".py", allowed={"README.md"})
bad_test_case_filename = 'Files in the `test_cases` directory must have names starting with "test_"; got "{}"'
bad_test_case_filename = 'Files in the `test_cases` directory must have names starting with "check_"; got "{}"'
for file in Path("test_cases").rglob("*.py"):
assert file.stem.startswith("test_"), bad_test_case_filename.format(file)
assert file.stem.startswith("check_"), bad_test_case_filename.format(file)
def check_no_symlinks() -> None: