mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-08 11:56:59 +00:00
260f432332
Replace remaining datetime.utcnow() call sites in session CRUD, incognito purge cutoff, and webhook payloads with core.database.utcnow_naive.
11 lines
307 B
Python
11 lines
307 B
Python
"""Regression: session routes must not call datetime.utcnow() (#1116)."""
|
|
|
|
import inspect
|
|
|
|
import routes.session_routes as sr
|
|
|
|
|
|
def test_session_routes_module_does_not_reference_utcnow():
|
|
source = inspect.getsource(sr)
|
|
assert "datetime.utcnow()" not in source
|
|
assert "_dt.utcnow()" not in source |