-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assert error message content in tests #37
Commits on Sep 8, 2022
-
chore: ignore dotfiles by default
The .gitignore now ignores all dotfiles at the repo root, other than those explicitly not ignored with !.
Configuration menu - View commit details
-
Copy full SHA for 03d35ce - Browse repository at this point
Copy the full SHA 03d35ceView commit details -
chore(build): configure flake8 to ignore hidden files/dirs
Flake8 will spend a long time scanning the virtualenv files dir if the readme instructions are followed, creating one at /.venv.
Configuration menu - View commit details
-
Copy full SHA for f2fb647 - Browse repository at this point
Copy the full SHA f2fb647View commit details -
chore(build): don't auto-run coverage & mypy with pytest
It's a bit distracting when running tests during development to have coverage printed every time, and slows down the tests somewhat. Coverage and mypy are now run by CI, but not by default with pytest.
Configuration menu - View commit details
-
Copy full SHA for cd846e7 - Browse repository at this point
Copy the full SHA cd846e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for be60a28 - Browse repository at this point
Copy the full SHA be60a28View commit details -
Configuration menu - View commit details
-
Copy full SHA for e56324c - Browse repository at this point
Copy the full SHA e56324cView commit details -
test: remove pragma: no cover from exception raises
I need to know that these code paths are hit by tests.
Configuration menu - View commit details
-
Copy full SHA for ca885c7 - Browse repository at this point
Copy the full SHA ca885c7View commit details
Commits on Sep 9, 2022
-
test: add tests for parse_longer/_shorter errors
These errors are not triggered by current tests.
Configuration menu - View commit details
-
Copy full SHA for 20cd25a - Browse repository at this point
Copy the full SHA 20cd25aView commit details -
fix: report parse_longer() invalid arg with ValueError
This can only occur because of programmer error.
Configuration menu - View commit details
-
Copy full SHA for 45ea36a - Browse repository at this point
Copy the full SHA 45ea36aView commit details -
fix: always report duplicate options with DocoptLanguageError
These errors are caused by bad usage docs, they shouldn't ever trigger DocoptExit as they're not the end user's fault.
Configuration menu - View commit details
-
Copy full SHA for 998db81 - Browse repository at this point
Copy the full SHA 998db81View commit details -
test: use a stable sys.argv value during tests
A lot of docopt tests call docopt() without specifying argv, which uses `sys.argv` by default, so a predictable value for it is necessary.
Configuration menu - View commit details
-
Copy full SHA for 118f29e - Browse repository at this point
Copy the full SHA 118f29eView commit details -
test: assert the messages of raised errors
I'm planning to make the error messages more user-friendly, (especially "Warning: found unmatched (duplicate?) arguments ..."), so I need to verify what the messages currently are so I can ensure that any changes are expected.
Configuration menu - View commit details
-
Copy full SHA for db47995 - Browse repository at this point
Copy the full SHA db47995View commit details -
Configuration menu - View commit details
-
Copy full SHA for df66068 - Browse repository at this point
Copy the full SHA df66068View commit details