mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-08 11:56:59 +00:00
Replace remaining datetime.utcnow() call sites in session CRUD, incognito purge cutoff, and webhook payloads with core.database.utcnow_naive.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user