Skip to content

Commit 4a82822

Browse files
Maffoochclaude
andcommitted
Fix ruff lint: import sorting and use datetime.UTC alias
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ce3dd1b commit 4a82822

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

unittests/test_update_import_history.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json
22
import logging
3-
from datetime import datetime, timezone as dt_timezone
3+
from datetime import UTC, datetime
44
from unittest.mock import patch
55

66
from django.contrib.auth.models import User as DjangoUser
@@ -154,7 +154,7 @@ def test_precheck_filters_out_deleted_findings_allows_successful_bulk(self):
154154

155155
def test_import_settings_scan_date_when_user_supplies_scan_date(self):
156156
"""When the user supplies a scan_date, import_settings should contain the ISO-formatted date."""
157-
user_scan_date = datetime(2025, 6, 15, 12, 0, 0, tzinfo=dt_timezone.utc)
157+
user_scan_date = datetime(2025, 6, 15, 12, 0, 0, tzinfo=UTC)
158158
self.importer.scan_date = user_scan_date
159159
self.importer.scan_date_override = True
160160

0 commit comments

Comments
 (0)