|
12 | 12 |
|
13 | 13 | from ietf.doc.models import DocEvent, BallotPositionDocEvent, TelechatDocEvent |
14 | 14 | from ietf.doc.models import Document, DocAlias, State, RelatedDocument |
15 | | -from ietf.doc.factories import WgDraftFactory, IndividualDraftFactory, ConflictReviewFactory, BaseDocumentFactory, CharterFactory, WgRfcFactory |
| 15 | +from ietf.doc.factories import WgDraftFactory, IndividualDraftFactory, ConflictReviewFactory, BaseDocumentFactory, CharterFactory, WgRfcFactory, IndividualRfcFactory |
16 | 16 | from ietf.doc.utils import create_ballot_if_not_open |
17 | 17 | from ietf.group.factories import RoleFactory, GroupFactory |
18 | 18 | from ietf.group.models import Group, GroupMilestone, Role |
@@ -90,7 +90,9 @@ def test_photos(self): |
90 | 90 | class IESGAgendaTests(TestCase): |
91 | 91 | def setUp(self): |
92 | 92 | mars = GroupFactory(acronym='mars',parent=Group.objects.get(acronym='farfut')) |
93 | | - WgDraftFactory(name='draft-ietf-mars-test',group=mars) |
| 93 | + wgdraft = WgDraftFactory(name='draft-ietf-mars-test', group=mars, intended_std_level_id='ps') |
| 94 | + rfc = IndividualRfcFactory.create(stream_id='irtf', other_aliases=['rfc6666',], states=[('draft','rfc'),('draft-iesg','pub')], std_level_id='inf', ) |
| 95 | + wgdraft.relateddocument_set.create(target=rfc.docalias_set.get(name='rfc6666'), relationship_id='refnorm') |
94 | 96 | ise_draft = IndividualDraftFactory(name='draft-imaginary-independent-submission') |
95 | 97 | ise_draft.stream = StreamName.objects.get(slug="ise") |
96 | 98 | ise_draft.save_with_history([DocEvent(doc=ise_draft, rev=ise_draft.rev, type="changed_stream", by=Person.objects.get(user__username="secretary"), desc="Test")]) |
@@ -364,8 +366,14 @@ def test_agenda_moderator_package(self): |
364 | 366 | self.assertTrue(d.group.name in unicontent(r), "%s not in response" % k) |
365 | 367 | self.assertTrue(d.group.acronym in unicontent(r), "%s acronym not in response" % k) |
366 | 368 | else: |
367 | | - self.assertTrue(d.name in unicontent(r), "%s not in response" % k) |
368 | | - self.assertTrue(d.title in unicontent(r), "%s title not in response" % k) |
| 369 | + if d.type_id == "draft" and d.name == "draft-ietf-mars-test": |
| 370 | + self.assertTrue(d.name in unicontent(r), "%s not in response" % k) |
| 371 | + self.assertTrue(d.title in unicontent(r), "%s title not in response" % k) |
| 372 | + self.assertTrue("Has downref: Yes" in unicontent(r), "%s downref not in response" % k) |
| 373 | + self.assertTrue("Add rfc6666" in unicontent(r), "%s downref not in response" % k) |
| 374 | + else: |
| 375 | + self.assertTrue(d.name in unicontent(r), "%s not in response" % k) |
| 376 | + self.assertTrue(d.title in unicontent(r), "%s title not in response" % k) |
369 | 377 |
|
370 | 378 | def test_agenda_package(self): |
371 | 379 | url = urlreverse("ietf.iesg.views.agenda_package") |
|
0 commit comments