Skip to content

tests/test_session.py::test_token_cookie_expires failed #554

@mavwolverine

Description

@mavwolverine

For me, this test fails with AssertionError.

assert (datetime.datetime(2025, 4, 10, 8, 34, 32) - datetime.timedelta(days=100)) < datetime.datetime(2024, 12, 31, 7, 34, 32, 462970)

If you print the values:

>>> (datetime.datetime(2025, 4, 10, 8, 34, 32) - datetime.timedelta(days=100)) , datetime.datetime(2024, 12, 31, 7, 34, 32, 462970)
(datetime.datetime(2024, 12, 31, 8, 34, 32), datetime.datetime(2024, 12, 31, 7, 34, 32, 462970))

The c.expires is 1 hour ahead of the check (8 vs 7).

Is this something to do with DST?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions