Добавить отметку внесенных отчетов
This commit is contained in:
1 parent
623cf5ad3a
commit
e33de2114a
10 files changed
+76
-4
No files matched your search
@@ -14,6 +14,12 @@ from app.main import BelkiHTTPServer, Handler
|
||||
|
||||
|
||||
class AdminFilterAndExportTests(unittest.TestCase):
|
||||
def test_current_month_period_uses_calendar_month(self) -> None:
|
||||
now = datetime(2026, 9, 1, 1, tzinfo=timezone.utc)
|
||||
start, end = period_bounds("current_month", None, None, now=now)
|
||||
self.assertEqual(start, datetime(2026, 8, 31, 21, tzinfo=timezone.utc))
|
||||
self.assertEqual(end, now)
|
||||
|
||||
def test_named_and_custom_periods_filter_records(self) -> None:
|
||||
now = datetime(2026, 9, 1, 12, tzinfo=timezone.utc)
|
||||
recent = {"created_at": "2026-09-01T11:30:00+00:00"}
|
||||
|
||||
Reference in new issue
Block a user