Skip to content

Commit d283b96

Browse files
committed
Improve stability of one of the idnits2 support tests. Commit ready for merge.
- Legacy-Id: 19264
1 parent b179143 commit d283b96

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

ietf/doc/tests.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,14 +2381,15 @@ def test_markdown_and_text(self):
23812381
class Idnits2SupportTests(TestCase):
23822382

23832383
def test_obsoleted(self):
2384-
for i in range(2):
2385-
rfc = WgRfcFactory()
2386-
WgRfcFactory(relations=[('obs',rfc)])
2384+
rfc = WgRfcFactory(alias2__name='rfc1001')
2385+
WgRfcFactory(alias2__name='rfc1003',relations=[('obs',rfc)])
2386+
rfc = WgRfcFactory(alias2__name='rfc1005')
2387+
WgRfcFactory(alias2__name='rfc1007',relations=[('obs',rfc)])
23872388

23882389
url = urlreverse('ietf.doc.views_doc.idnits2_rfcs_obsoleted')
23892390
r = self.client.get(url)
23902391
self.assertEqual(r.status_code, 200)
2391-
self.assertEqual(r.content,b'1001 1003\n1005 1007\n')
2392+
self.assertEqual(r.content, b'1001 1003\n1005 1007\n')
23922393

23932394
def test_rfc_status(self):
23942395
url = urlreverse('ietf.doc.views_doc.idnits2_rfc_status')

0 commit comments

Comments
 (0)