Skip to content

Commit bce078f

Browse files
JacobCoffeeclaude
andcommitted
fix DTZ001 lint and restore users signal handler
- cms/tests.py: add tzinfo=datetime.UTC to satisfy DTZ001, update assertion - users/apps.py: restore `import users.listeners` (signal for auth token auto-creation removed by ruff F401) - fixes all API test 401s/errors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 35da788 commit bce078f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cms/tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def test_iso_time_tag(self):
7272
template = Template("{% load cms %}{% iso_time_tag now %}")
7373
rendered = template.render(Context({"now": now}))
7474
self.assertIn(
75-
'<time datetime="2014-01-01T12:00:00"><span class="say-no-more">2014-</span>01-01</time>', rendered
75+
'<time datetime="2014-01-01T12:00:00+00:00"><span class="say-no-more">2014-</span>01-01</time>',
76+
rendered,
7677
)
7778

7879

users/apps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ class UsersAppConfig(AppConfig):
1111

1212
def ready(self):
1313
"""Perform app initialization when Django starts."""
14+
import users.listeners # noqa: F401

0 commit comments

Comments
 (0)