Skip to content

Conversation

SunPowered
Copy link
Owner

@SunPowered SunPowered commented Dec 1, 2022

This patch addresses Issues #4 and #12.

This implements a discovery_doc cache so that HTTP requests are not required on the AuthClient constructor.

This also creates proper fixtures and mocks to be used in the unit tests.

The testing suite runs extremely fast now and only several HTTP requests are made.

This avoids making an HTTP request in the AuthClient constructor
This speeds up the test suite by not fetching the discovery docs as often
One test had the mock set to Session rather than Session.request.
This was causing the test to fail with the new discovery_doc stubs
@SunPowered SunPowered merged commit 46f60e2 into master Dec 1, 2022
@SunPowered SunPowered deleted the issue-12 branch December 1, 2022 15:45
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