Skip to content
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

Use unittest for tests #330

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Use unittest for tests #330

merged 2 commits into from
Feb 29, 2024

Conversation

divergentdave
Copy link
Collaborator

This moves tests from if __name__ == "__main__": blocks in each file to a separate directory, using the standard library's unittest framework. Aside from better code organization, this also speeds up test execution, because we only need to load Sage's libraries once. This is part of #327.

@cjpatton cjpatton self-requested a review February 29, 2024 15:31
Copy link
Collaborator

@cjpatton cjpatton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful, thanks so much for putting the time in on this.

poc/flp_generic.py Show resolved Hide resolved
poc/tests/__init__.py Show resolved Hide resolved
@divergentdave divergentdave merged commit 9bb282b into main Feb 29, 2024
6 checks passed
@divergentdave divergentdave deleted the david/move-tests branch February 29, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants