mirror of https://github.com/snachodog/mybuddy.git
Black
This commit is contained in:
parent
d0469caed5
commit
5f23eecb84
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue