aboutsummaryrefslogtreecommitdiff
path: root/tests/test_views.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/test_views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_views.py b/tests/test_views.py
index aac281e..67ed190 100644
--- a/tests/test_views.py
+++ b/tests/test_views.py
@@ -1,5 +1,5 @@
import uuid
-from datetime import datetime, timezone
+from datetime import UTC, datetime
from unittest.mock import Mock, call, patch
import pytest
@@ -19,7 +19,7 @@ from webmentions_ssg.models import (
def log_in(app: Flask, client: FlaskClient) -> None:
with app.app_context():
- user = User(username="admin")
+ user = User(username="admin", password="test")
db.session.add(user)
db.session.commit()
@@ -32,7 +32,7 @@ def log_in(app: Flask, client: FlaskClient) -> None:
def create_sent_source(app: Flask) -> uuid.UUID:
- now = datetime.now(timezone.utc)
+ now = datetime.now(UTC)
with app.app_context():
source = Source(