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 SAMPLE_STRIPE_DATA to pytest fixtures #629

Merged
merged 3 commits into from
Apr 12, 2023

Conversation

grahamalama
Copy link
Contributor

A follow-on of #628, in this PR, we move more data from sample_data.py to pytest fixtures in conftest.py, and use those fixtures in tests.

After this PR, there will be another that somehow moves FAKE_STRIPE_ID / fake_stripe_id() out of sample_data.py, then we can delete that module

@grahamalama grahamalama requested a review from a team as a code owner April 12, 2023 12:47
@leplatrem leplatrem added the dev Enhancements to development environment label Apr 12, 2023
Copy link
Contributor

@leplatrem leplatrem left a comment

Choose a reason for hiding this comment

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

💯

Copy link
Contributor

@bsieber-mozilla bsieber-mozilla left a comment

Choose a reason for hiding this comment

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

LGTM; thanks for cleaning up the testing strategy

@grahamalama grahamalama merged commit f32fe04 into main Apr 12, 2023
@grahamalama grahamalama deleted the remove-sample-stripe-data branch April 12, 2023 18:58
@grahamalama grahamalama linked an issue Apr 14, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Enhancements to development environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace static fixtures with factory-generated fixtures
3 participants