This commit is contained in:
Paul Konstantin Gerke 2022-03-06 18:31:29 +01:00
parent d0469caed5
commit 5f23eecb84
1 changed files with 3 additions and 4 deletions

View File

@ -663,7 +663,7 @@ class NotesFormsTest(FormsTestCaseBase):
"child": self.note.child.id, "child": self.note.child.id,
"note": "Edited note", "note": "Edited note",
"time": self.localdate_string(), "time": self.localdate_string(),
"tags": "oldtag,newtag" "tags": "oldtag,newtag",
} }
page = self.c.post("/notes/{}/".format(self.note.id), params, follow=True) page = self.c.post("/notes/{}/".format(self.note.id), params, follow=True)
self.assertEqual(page.status_code, 200) self.assertEqual(page.status_code, 200)
@ -676,8 +676,7 @@ class NotesFormsTest(FormsTestCaseBase):
) )
self.assertSetEqual( self.assertSetEqual(
set(t.name for t in self.note.tags.all()), set(t.name for t in self.note.tags.all()), {"oldtag", "newtag"}
{"oldtag", "newtag"}
) )
# Old tag remains old, because it was not added # Old tag remains old, because it was not added
@ -692,7 +691,7 @@ class NotesFormsTest(FormsTestCaseBase):
"child": self.note.child.id, "child": self.note.child.id,
"note": "Edited note (2)", "note": "Edited note (2)",
"time": self.localdate_string(), "time": self.localdate_string(),
"tags": "oldtag" "tags": "oldtag",
} }
page = self.c.post("/notes/{}/".format(self.note.id), params, follow=True) page = self.c.post("/notes/{}/".format(self.note.id), params, follow=True)
self.assertEqual(page.status_code, 200) self.assertEqual(page.status_code, 200)