-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow time to be set for test purposes (#852)
This just adds a static method for test purposes so that downstream code can more easily assert an exact `AccessToken` object in their tests. Since the calls to `time()` are non-deterministic, downstream tests are forced to mock, or do looser assertions on the `expires` property. Co-authored-by: Ben Ramsey <ben@benramsey.com>
- Loading branch information
1 parent
937c0ac
commit 2392bf7
Showing
2 changed files
with
111 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters