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

pytest migration #1213

Merged
merged 1 commit into from
Oct 1, 2023
Merged

pytest migration #1213

merged 1 commit into from
Oct 1, 2023

Conversation

azmeuk
Copy link
Contributor

@azmeuk azmeuk commented Aug 12, 2023

supersedes #1149
closes #1148

This PR basically starts from 1149 and:

  • adds pytest-flask for test readability
  • replace setUp/tearDown with pytest fixtures
  • rename test classes to use the pytest convention
  • use pytest assertions

I suppose more could be done, for instance by moving away from the test class structure to a flat test files structure, and reorganize fixtures too, but maybe this is a good enough first step?

@almet
Copy link
Member

almet commented Aug 12, 2023

Wow, this is huge work. Thanks a lot for this :-)

@azmeuk azmeuk force-pushed the pytest branch 6 times, most recently from 0cc5c19 to 0980d5e Compare August 13, 2023 14:38
- replace setUp/tearDown with pytest fixtures
- rename test classes to use the pytest convention
- use pytest assertions

Co-authored-by: Glandos <[email protected]>
Copy link
Member

@almet almet left a comment

Choose a reason for hiding this comment

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

I skimmed quickly trough the changes and they look good to me.

Waiting for a second pair of eyes though.

@zorun
Copy link
Collaborator

zorun commented Sep 3, 2023

@Glandos can you review this?

@zorun
Copy link
Collaborator

zorun commented Oct 1, 2023

It's been one-and-a-half month so I'm going to merge this (before it gets out-of-date because of unrelated changes)

@zorun zorun merged commit 21408f8 into spiral-project:master Oct 1, 2023
15 checks passed
@zorun zorun mentioned this pull request Oct 1, 2023
@azmeuk azmeuk deleted the pytest branch October 1, 2023 22:07
@azmeuk
Copy link
Contributor Author

azmeuk commented Oct 2, 2023

Thank you!

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.

Migrate to pytest
4 participants