2828from ietf .group .factories import GroupFactory
2929from ietf .meeting .models import Meeting , Session , SessionPresentation
3030from ietf .meeting .factories import MeetingFactory , SessionFactory
31- from ietf .meeting .test_data import make_meeting_test_data
31+ # from ietf.meeting.test_data import make_meeting_test_data
3232from ietf .name .models import SessionStatusName
3333from ietf .person .models import Person
3434from ietf .person .factories import PersonFactory
@@ -610,8 +610,16 @@ def test_document_draft(self):
610610 self .assertEqual (r .status_code , 404 )
611611
612612 def test_document_primary_and_history_views (self ):
613- make_test_data ()
614- make_meeting_test_data ()
613+ #make_test_data()
614+ #make_meeting_test_data()
615+ DocumentFactory (name = 'draft-imaginary-independent-submission' )
616+ ConflictReviewFactory (name = 'conflict-review-imaginary-irtf-submission' )
617+ CharterFactory (name = 'charter-ietf-mars' )
618+ DocumentFactory (type_id = 'agenda' ,name = 'agenda-42-mars' )
619+ DocumentFactory (type_id = 'minutes' ,name = 'minutes-42-mars' )
620+ DocumentFactory (type_id = 'slides' ,name = 'slides-42-mars-1-active' )
621+ statchg = DocumentFactory (type_id = 'statchg' ,name = 'status-change-imaginary-mid-review' )
622+ statchg .set_state (State .objects .get (type_id = 'statchg' ,slug = 'adrev' ))
615623
616624 # Ensure primary views of both current and historic versions of documents works
617625 for docname in ["draft-imaginary-independent-submission" ,
@@ -684,7 +692,7 @@ def test_document_material(self):
684692 self .assertEqual (r .status_code , 200 )
685693
686694 def test_document_ballot (self ):
687- doc = make_test_data ()
695+ doc = DocumentFactory ()
688696 ad = Person .objects .get (user__username = "ad" )
689697 ballot = create_ballot_if_not_open (None , doc , ad , 'approve' )
690698 assert ballot == doc .active_ballot ()
@@ -728,7 +736,9 @@ def test_document_ballot(self):
728736
729737 def test_document_ballot_needed_positions (self ):
730738 # draft
731- doc = make_test_data ()
739+ doc = DocumentFactory (intended_std_level_id = 'ps' )
740+ doc .set_state (State .objects .get (type_id = 'draft-iesg' ,slug = 'iesg-eva' ))
741+ doc .set_state (State .objects .get (type_id = 'draft' ,slug = 'active' ))
732742 ad = Person .objects .get (user__username = "ad" )
733743 create_ballot_if_not_open (None , doc , ad , 'approve' )
734744
@@ -739,7 +749,9 @@ def test_document_ballot_needed_positions(self):
739749 self .assertFalse ('more YES or NO' in unicontent (r ))
740750
741751 # status change
742- doc = Document .objects .get (name = 'status-change-imaginary-mid-review' )
752+ DocumentFactory ().docalias_set .create (name = 'rfc9998' )
753+ DocumentFactory ().docalias_set .create (name = 'rfc9999' )
754+ doc = DocumentFactory (type_id = 'statchg' ,name = 'status-change-imaginary-mid-review' )
743755 iesgeval_pk = str (State .objects .get (slug = 'iesgeval' ,type__slug = 'statchg' ).pk )
744756 self .client .login (username = 'ad' , password = 'ad+password' )
745757 r = self .client .post (urlreverse ('ietf.doc.views_status_change.change_state' ,kwargs = dict (name = doc .name )),dict (new_state = iesgeval_pk ))
0 commit comments