Skip to content

Commit b94b840

Browse files
committed
Fix tests for Django 3.2.
1 parent 258c41d commit b94b840

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def pytest_configure():
3131
}
3232

3333
settings.configure(
34+
SECRET_KEY="this-is-a-secret",
3435
TEMPLATES=templates,
3536
ROOT_URLCONF="django_unicorn.urls",
3637
DATABASES=databases,

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
@nox.session()
5-
@nox.parametrize("django", ["2.2", "3.0"])
5+
@nox.parametrize("django", ["2.2", "3.0", "3.2"])
66
def tests(session, django):
77
session.install("poetry")
88
session.run("poetry", "install")

tests/views/message/test_message.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_message_bad_checksum(client):
6969
def test_message_no_component_id(client):
7070
data = {
7171
"data": {},
72-
"checksum": "FpZ5q8E2",
72+
"checksum": "DVVk97cx",
7373
"epoch": time.time(),
7474
}
7575
response = post_json(client, data)
@@ -78,7 +78,7 @@ def test_message_no_component_id(client):
7878

7979

8080
def test_message_no_epoch(client):
81-
data = {"data": {}, "checksum": "FpZ5q8E2", "id": "abc"}
81+
data = {"data": {}, "checksum": "DVVk97cx", "id": "abc"}
8282
response = post_json(client, data)
8383

8484
assert_json_error(response, "Missing epoch")
@@ -87,7 +87,7 @@ def test_message_no_epoch(client):
8787
def test_message_component_not_found(client):
8888
data = {
8989
"data": {},
90-
"checksum": "FpZ5q8E2",
90+
"checksum": "DVVk97cx",
9191
"id": "asdf",
9292
"epoch": time.time(),
9393
}
@@ -104,7 +104,7 @@ def test_message_component_not_found(client):
104104
def test_message_component_with_dash(client):
105105
data = {
106106
"data": {},
107-
"checksum": "FpZ5q8E2",
107+
"checksum": "DVVk97cx",
108108
"id": "asdf",
109109
"epoch": time.time(),
110110
}
@@ -121,7 +121,7 @@ def test_message_component_with_dash(client):
121121
def test_message_component_with_dot(client):
122122
data = {
123123
"data": {},
124-
"checksum": "FpZ5q8E2",
124+
"checksum": "DVVk97cx",
125125
"id": "asdf",
126126
"epoch": time.time(),
127127
}

0 commit comments

Comments
 (0)