Removed unnecessary f-strings from the test_reorder test of the JournalEntryReorderTestCase test case.

This commit is contained in:
依瑪貓 2023-05-17 23:54:52 +08:00
parent 69175979ff
commit 74e414badf

View File

@ -2188,7 +2188,7 @@ class JournalEntryReorderTestCase(unittest.TestCase):
f"{id_4}-no": "2", f"{id_4}-no": "2",
f"{id_5}-no": "3"}) f"{id_5}-no": "3"})
self.assertEqual(response.status_code, 302) self.assertEqual(response.status_code, 302)
self.assertEqual(response.headers["Location"], f"/next") self.assertEqual(response.headers["Location"], "/next")
with self.app.app_context(): with self.app.app_context():
self.assertEqual(db.session.get(JournalEntry, id_1).no, 4) 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_3}-no": "5",
f"{id_4}-no": "2"}) f"{id_4}-no": "2"})
self.assertEqual(response.status_code, 302) self.assertEqual(response.status_code, 302)
self.assertEqual(response.headers["Location"], f"/next") self.assertEqual(response.headers["Location"], "/next")
with self.app.app_context(): with self.app.app_context():
self.assertEqual(db.session.get(JournalEntry, id_1).no, 3) self.assertEqual(db.session.get(JournalEntry, id_1).no, 3)