File tree Expand file tree Collapse file tree
backend/api/schedule/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,6 +61,14 @@ def test_search(
6161 speaker__name = "John Doe" ,
6262 )
6363
64+ submission_2 = SubmissionFactory (
65+ conference = conference ,
66+ status = Submission .STATUS .proposed ,
67+ pending_status = Submission .STATUS .accepted ,
68+ title = LazyI18nString ({"en" : "TDD talk" , "it" : "" }),
69+ speaker__name = "John Doe" ,
70+ )
71+
6472 SubmissionFactory (
6573 conference = conference ,
6674 status = Submission .STATUS .accepted ,
@@ -91,10 +99,13 @@ def test_search(
9199 assert not response .get ("errors" )
92100 data = response ["data" ]
93101
94- assert len (data ["searchEventsForSchedule" ]["results" ]) == 2
102+ assert len (data ["searchEventsForSchedule" ]["results" ]) == 3
95103 assert {"__typename" : "Submission" , "id" : str (submission_1 .hashid )} in data [
96104 "searchEventsForSchedule"
97105 ]["results" ]
98106 assert {"__typename" : "Keynote" , "id" : str (keynote_1 .id )} in data [
99107 "searchEventsForSchedule"
100108 ]["results" ]
109+ assert {"__typename" : "Submission" , "id" : str (submission_2 .hashid )} in data [
110+ "searchEventsForSchedule"
111+ ]["results" ]
You can’t perform that action at this time.
0 commit comments