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

Migrate tests to Pytest #205

Open
allerter opened this issue Apr 24, 2021 · 0 comments
Open

Migrate tests to Pytest #205

allerter opened this issue Apr 24, 2021 · 0 comments

Comments

@allerter
Copy link
Contributor

Currently, the unit tests use Python's standard library unittest, but this library is limited in features and doesn't allow for much modularity. The solution is to use pytest. instead, as many other open-source packages do.
Also, migrating the tests wouldn't be that hard as pytest already supports tests written for unittest. But we should change the structure of the tests nonetheless to utilize pytest's features. This would allow us to add tests easily later on. For example, instead of importing the Genius object from tests/__init__.py we should make the object a fixture declared in tests/conftest.py and rewrite the tests accordingly.

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

No branches or pull requests

1 participant