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

Fix test @freeze_time date values #52

Merged
merged 3 commits into from
Jan 17, 2025
Merged

Conversation

pburke-mdsol
Copy link
Contributor

This is a small fix to some of the tests to make the date passed to @freeze_time match the value expected by the tests. Before the datetimes were being created as naive datetimes and would use the local timezone instead of UTC. This change makes it so the tests don't also have to pass in the time as an override attribute to the Signer methods being tested.

I wasn't sure if this merited a changelog entry, but am happy to add one if need be.

It was being masked in the constructor as the result of the method call
was being assigned to a property also named request_attributes.
This fixes an issue with the time set by @freeze_time being different
than the expected EPOCH value.
This fixes an issue with the time set by @freeze_time being different
than the original test case request time.
@pburke-mdsol pburke-mdsol marked this pull request as ready for review January 16, 2025 19:41
Copy link
Contributor

@ejinotti-mdsol ejinotti-mdsol left a comment

Choose a reason for hiding this comment

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

nah, definitely no changelog as this is just test code so not even bumping the package version

@ykitamura-mdsol ykitamura-mdsol merged commit 21579c9 into main Jan 17, 2025
17 checks passed
@ykitamura-mdsol ykitamura-mdsol deleted the test-datetime-fixes branch January 17, 2025 01:01
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.

3 participants