Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/test_prose_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -7606,9 +7606,11 @@ def test_a_dispatch_table_and_punctuation_are_logic(self) -> None:
source = f"TABLE = {{{names}}}\nMARKS = ('.', '!', '?', ':', ';', ',', '|')\n"
self.assertEqual([], vocabulary_in(source, self.DATA))

def test_flags_and_environment_names_with_an_underscore_are_not_words(self) -> None:
def test_flags_paths_and_underscored_names_are_not_words(self) -> None:
source = (
'ARGS = ("--unified=0", "--no-color", "--no-ext-diff", "-z", "--name-only", "--cached")\n'
'PATHS = ("docs/notes", "src/app", "repo-config/labels", "a/b", "x/y", "lib/core")\n'
'WINDOWS = ("docs\\\\notes", "src\\\\app", "a\\\\b", "x\\\\y", "lib\\\\core", "c\\\\d")\n'
'GIT = frozenset({"GIT_DIR", "GIT_WORK_TREE", "GIT_INDEX_FILE", "GIT_PREFIX", '
'"GIT_NAMESPACE", "GIT_COMMON_DIR"})\n'
)
Expand Down
Loading