Skip to content

Commit 72db457

Browse files
committed
Add missing sync notify page test, found by coverage check
- Legacy-Id: 7088
1 parent 84136cb commit 72db457

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ietf/sync/tests.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ def test_iana_review_mail(self):
173173
iana.add_review_comment(doc_name, review_time, by, comment)
174174
self.assertEqual(DocEvent.objects.filter(doc=draft, type="iana_review").count(), 1)
175175

176+
def test_notify_page(self):
177+
# check that we can get the notify page
178+
url = urlreverse("ietf.sync.views.notify", kwargs=dict(org="iana", notification="changes"))
179+
login_testing_unauthorized(self, "secretary", url)
180+
r = self.client.get(url)
181+
self.assertEqual(r.status_code, 200)
182+
self.assertTrue("new changes at" in r.content)
183+
184+
# we don't actually try posting as that would trigger a real run
185+
176186

177187
class RFCSyncTests(TestCase):
178188
def test_rfc_index(self):

0 commit comments

Comments
 (0)