Skip to content

Commit 6920c17

Browse files
committed
Fix problem with missing names
- Legacy-Id: 17127
1 parent defc50c commit 6920c17

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

ietf/meeting/tests_js.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from ietf.meeting.factories import SessionFactory
2121
from ietf.meeting.test_data import make_meeting_test_data
2222
from ietf.meeting.models import SchedTimeSessAssignment
23+
from ietf.name.models import SessionStatusName
2324
from ietf.utils.test_runner import set_coverage_checking
2425
from ietf.utils.pipe import pipe
2526
from ietf import settings
@@ -118,7 +119,11 @@ def tearDownClass(cls):
118119
def setUp(self):
119120
self.driver = webdriver.PhantomJS(port=0, service_log_path=settings.TEST_GHOSTDRIVER_LOG_PATH)
120121
self.driver.set_window_size(1024,768)
121-
self.session = SessionFactory(meeting__type_id='ietf')
122+
# this is a temporary fix - we should have these name in the
123+
# database already at this point
124+
SessionStatusName.objects.get_or_create(slug='schedw')
125+
SessionStatusName.objects.get_or_create(slug='sched')
126+
self.session = SessionFactory(meeting__type_id='ietf', status_id='sched')
122127
self.session.sessionpresentation_set.create(document=DocumentFactory(type_id='slides',name='one'),order=1)
123128
self.session.sessionpresentation_set.create(document=DocumentFactory(type_id='slides',name='two'),order=2)
124129
self.session.sessionpresentation_set.create(document=DocumentFactory(type_id='slides',name='three'),order=3)

0 commit comments

Comments
 (0)