Skip to content

Commit 65e7dcd

Browse files
committed
Replaced the "/next" next URI with the NEXT_URI constant in the test_reorder test of the JournalEntryReorderTestCase test case.
1 parent 74e414b commit 65e7dcd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_journal_entry.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,14 +2181,14 @@ def test_reorder(self) -> None:
21812181
response = self.client.post(
21822182
f"{PREFIX}/dates/{date.isoformat()}",
21832183
data={"csrf_token": self.csrf_token,
2184-
"next": "/next",
2184+
"next": NEXT_URI,
21852185
f"{id_1}-no": "4",
21862186
f"{id_2}-no": "1",
21872187
f"{id_3}-no": "5",
21882188
f"{id_4}-no": "2",
21892189
f"{id_5}-no": "3"})
21902190
self.assertEqual(response.status_code, 302)
2191-
self.assertEqual(response.headers["Location"], "/next")
2191+
self.assertEqual(response.headers["Location"], NEXT_URI)
21922192

21932193
with self.app.app_context():
21942194
self.assertEqual(db.session.get(JournalEntry, id_1).no, 4)
@@ -2209,12 +2209,12 @@ def test_reorder(self) -> None:
22092209
response = self.client.post(
22102210
f"{PREFIX}/dates/{date.isoformat()}",
22112211
data={"csrf_token": self.csrf_token,
2212-
"next": "/next",
2212+
"next": NEXT_URI,
22132213
f"{id_2}-no": "3a",
22142214
f"{id_3}-no": "5",
22152215
f"{id_4}-no": "2"})
22162216
self.assertEqual(response.status_code, 302)
2217-
self.assertEqual(response.headers["Location"], "/next")
2217+
self.assertEqual(response.headers["Location"], NEXT_URI)
22182218

22192219
with self.app.app_context():
22202220
self.assertEqual(db.session.get(JournalEntry, id_1).no, 3)

0 commit comments

Comments
 (0)