test: Use (rfc, published) state in test
This commit is contained in:
parent
7d5b1767f5
commit
1660a14331
|
@ -151,7 +151,7 @@ class CommunityListTests(WebTest):
|
|||
"action": "add_rule",
|
||||
"rule_type": "author_rfc",
|
||||
"author_rfc-person": Person.objects.filter(documentauthor__document=draft).first().pk,
|
||||
"author_rfc-state": State.objects.get(type="draft", slug="rfc").pk,
|
||||
"author_rfc-state": State.objects.get(type="rfc", slug="published").pk,
|
||||
})
|
||||
self.assertEqual(r.status_code, 302)
|
||||
clist = CommunityList.objects.get(user__username="plain")
|
||||
|
@ -408,4 +408,4 @@ class CommunityListTests(WebTest):
|
|||
self.assertEqual(len(outbox), mailbox_before + 1)
|
||||
self.assertTrue(draft.name in outbox[-1]["Subject"])
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue