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

tests(auth): simplify auth service tests with wiremock #1514

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Jan 9, 2024

Description of change

Since we're not sure about merging #1478 and #1508, I extracted the testing refactor, simplifying the Stripe mocking a little bit. This should make it easier to write tests for the changes we're going to make when implementing RDS billing as a paid addon.

How has this been tested? (if applicable)

Updated the tests, they pass, as they did in #1478 and #1508.

@oddgrd oddgrd marked this pull request as ready for review January 9, 2024 19:46
this makes the tests more readable, since you don't need to know which index each mock has
Copy link
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

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

LGTM

@oddgrd oddgrd merged commit 129c329 into main Jan 15, 2024
35 checks passed
@oddgrd oddgrd deleted the tests/refactor-auth-service-tests branch January 15, 2024 09:54
jonaro00 pushed a commit that referenced this pull request Jan 24, 2024
* tests(auth): simplify auth service tests with wiremock

* tests(auth): use stripe mock consts directly in tests

this makes the tests more readable, since you don't need to know which index each mock has
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