-
Notifications
You must be signed in to change notification settings - Fork 201
Convert unit tests to Pytest #276
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Modernize tests by migrating from unittest to pytest for clearer assertions and better fixtures, and update packaging to poetry-core.
- Replace unittest.TestCase classes and assertions with plain pytest-style tests and assertions
- Update exception assertions to pytest.raises and remove unittest-only helpers
- Update pyproject.toml to use poetry-core and add pytest dependency
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
tests/test_pytmfunc.py | Convert unittest assertions and subTest blocks to pytest style; minor refactors in test bodies. |
tests/test_private_func.py | Convert unittest assertions to pytest style; adjust exception assertions; minor cleanup. |
pyproject.toml | Switch build backend to poetry-core; reorder Python constraints; add pytest to dependencies. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Not a part of the proposed changes, just a typo in the original tests Co-authored-by: Copilot <[email protected]>
Add unit tests for sqldump
Tests are failing on missing poetry. |
This PR modernizes the testing framework replacing the unittest framework with pytest. pytest provides clearer assertions, powerful fixtures, and an extensive plugin ecosystem, which will make tests easier to write, maintain, and extend going forward.