Removed unnecessary f-strings from the test_reorder test of the JournalEntryReorderTestCase test case.
This commit is contained in:
parent
69175979ff
commit
74e414badf
@ -2188,7 +2188,7 @@ class JournalEntryReorderTestCase(unittest.TestCase):
|
||||
f"{id_4}-no": "2",
|
||||
f"{id_5}-no": "3"})
|
||||
self.assertEqual(response.status_code, 302)
|
||||
self.assertEqual(response.headers["Location"], f"/next")
|
||||
self.assertEqual(response.headers["Location"], "/next")
|
||||
|
||||
with self.app.app_context():
|
||||
self.assertEqual(db.session.get(JournalEntry, id_1).no, 4)
|
||||
@ -2214,7 +2214,7 @@ class JournalEntryReorderTestCase(unittest.TestCase):
|
||||
f"{id_3}-no": "5",
|
||||
f"{id_4}-no": "2"})
|
||||
self.assertEqual(response.status_code, 302)
|
||||
self.assertEqual(response.headers["Location"], f"/next")
|
||||
self.assertEqual(response.headers["Location"], "/next")
|
||||
|
||||
with self.app.app_context():
|
||||
self.assertEqual(db.session.get(JournalEntry, id_1).no, 3)
|
||||
|
Loading…
Reference in New Issue
Block a user