Skip to content

chore: convert workbook tests to pytest #1645

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

Open
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

jorwoods
Copy link
Contributor

TSC already uses pytest as its testing framework, this PR converts the individual tests from using unittest to using pytest and its fixtures. Using fixtures will allow more precise control over the scoping of dependencies.

Favoring pytest style tests will also allow use of parameterize and other advanced pytest features. It also allows using the simpler assert instead of unittest's assertEqual, assertTrue, and others. This makes writing tests in the future simpler and more consistent.

Also striving for consistency, this PR changes all of the test assets to be Path objects, allowing easier reading of the payload.

@jorwoods jorwoods force-pushed the jorwoods/pytestify_workbook branch from 1ac12a2 to 0ab3cbc Compare August 21, 2025 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant