Simplify HIDE_* env var test; add missing cases · gitpython-developers/GitPython@c11b366 · GitHub
Skip to content

Commit c11b366

Browse files
committed
Simplify HIDE_* env var test; add missing cases
Now that the expected truth values are intuitive, it is no longer necessary to group them by result and include messages that acknowldge the unintuitive cases. This reorders them so that pairs (like "yes" and "no") appear together, removes the messages that are no longer necessary, and reduces test code duplication. This also adds cases to test leading/trailing whitespace in otherwise nonempty strings, so it is clearer what the test is asserting overall, and so a bug where lstrip or rstrip (or equivalent with a regex) were used instead strip would be caught.
1 parent 333896b commit c11b366

1 file changed

Lines changed: 19 additions & 27 deletions

File tree

test/test_util.py

Lines changed: 19 additions & 27 deletions

0 commit comments

Comments
 (0)