test: Use (rfc, published) state in test

This commit is contained in:
Jennifer Richards 2023-07-21 13:33:33 -03:00
parent 7d5b1767f5
commit 1660a14331
No known key found for this signature in database
GPG key ID: 9B2BF5C5ADDA6A6E

View file

@ -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"])