Skip to content

Commit

Permalink
fix: Enforce utc for tz-naive datetime.date during number conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
seandstewart committed Jun 19, 2024
1 parent e235f43 commit afe79fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/unmarshal/test_routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_str_unmarshaller(given_input, expected_output):
string=dict(given_input="1", expected_output=1),
number=dict(given_input=1, expected_output=1),
bool=dict(given_input=True, expected_output=1),
date=dict(given_input=datetime.date(2020, 1, 1), expected_output=1577854800.0),
date=dict(given_input=datetime.date(2020, 1, 1), expected_output=1577858400.0),
)
def test_number_unmarshaller(given_input, given_type, expected_output):
# Given
Expand Down

0 comments on commit afe79fb

Please sign in to comment.