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

Clean up test mocking #82

Merged
merged 7 commits into from
Jul 20, 2021
Merged

Clean up test mocking #82

merged 7 commits into from
Jul 20, 2021

Conversation

maxdeviant
Copy link
Contributor

This PR begins the process of cleaning up the mocks in our tests.

Previously we were double mocking our response objects, which was simulating a response object being returned from the WorkOS API, which is not correct.

@maxdeviant maxdeviant self-assigned this Jul 20, 2021
@maxdeviant maxdeviant requested a review from a team as a code owner July 20, 2021 14:43
EVENTS_PATH,
method=REQUEST_METHOD_POST,
params=event,
headers=headers,
token=workos.api_key,
)

return True
return response["success"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated this to make the SDK use the actual response from the API.

@maxdeviant maxdeviant merged commit f4bc729 into master Jul 20, 2021
@maxdeviant maxdeviant deleted the clean-up-tests branch July 20, 2021 16:48
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.

None yet

2 participants