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 testing from nosetests to pytest #1405

Merged
merged 17 commits into from
Mar 23, 2023
Merged

Conversation

bgyori
Copy link
Member

@bgyori bgyori commented Mar 23, 2023

This PR migrates INDRA from nosetests to pytest. This is becoming necessary because nosetests is deprecated and is incompatible with recent Python versions (as far as I could tell, it breaks on 3.10+). Still, it seems like 3.10+ compatibility in INDRA overall will require further changes since several dependencies of INDRA error when attempting to run tests on 3.10+.

Other than changing the main command used to run tests, necessary changes include:

  • changing all test attr decorators to marks
  • changing the way expected exceptions are tested
  • changing the way tests are skipped

@bgyori bgyori merged commit 5a494c2 into sorgerlab:master Mar 23, 2023
@bgyori bgyori deleted the testing branch March 23, 2023 20:08
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.

1 participant