Skip to content

Commit

Permalink
fix: repair test_history_bis_00
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks committed Jul 6, 2023
1 parent 63a9920 commit 400280e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ietf/doc/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1850,15 +1850,14 @@ def test_history(self):
self.assertContains(r, e.desc)

def test_history_bis_00(self):
rfcname='rfc9090'
rfc = WgRfcFactory(alias2=rfcname)
bis_draft = WgDraftFactory(name='draft-ietf-{}-{}bis'.format(rfc.group.acronym,rfcname))
rfc = WgRfcFactory(name='rfc9090')
bis_draft = WgDraftFactory(name='draft-ietf-{}-{}bis'.format(rfc.group.acronym,rfc.name))

url = urlreverse('ietf.doc.views_doc.document_history', kwargs=dict(name=bis_draft.name))
r = self.client.get(url)
self.assertEqual(r.status_code, 200)
q = PyQuery(unicontent(r))
attr1='value="{}"'.format(rfcname)
attr1='value="{}"'.format(rfc.name)
self.assertEqual(len(q('option['+attr1+'][selected="selected"]')), 1)


Expand Down

0 comments on commit 400280e

Please sign in to comment.