@@ -1268,15 +1268,19 @@ def test_cannot_submit_more_than_3_proposals(graphql_client, user):
12681268 status = Submission .STATUS .proposed ,
12691269 )
12701270
1271- resp , _ = _submit_talk (graphql_client , conference , title = {"en" : "My first talk" })
1271+ resp , _ = _submit_talk (
1272+ graphql_client , conference , title = {"en" : "My first talk" }, languages = ["en" ]
1273+ )
12721274
12731275 assert resp ["data" ]["sendSubmission" ]["__typename" ] == "SendSubmissionErrors"
12741276 assert resp ["data" ]["sendSubmission" ]["errors" ]["nonFieldErrors" ] == [
12751277 "You can only submit up to 3 proposals"
12761278 ]
12771279
12781280
1279- def test_can_submit_unlimited_proposals_when_max_proposals_is_none (graphql_client , user ):
1281+ def test_can_submit_unlimited_proposals_when_max_proposals_is_none (
1282+ graphql_client , user
1283+ ):
12801284 graphql_client .force_login (user )
12811285
12821286 conference = ConferenceFactory (
@@ -1303,7 +1307,9 @@ def test_can_submit_unlimited_proposals_when_max_proposals_is_none(graphql_clien
13031307 )
13041308
13051309 # Should be able to submit a 4th proposal
1306- resp , _ = _submit_talk (graphql_client , conference , title = {"en" : "My fourth talk" })
1310+ resp , _ = _submit_talk (
1311+ graphql_client , conference , title = {"en" : "My fourth talk" }, languages = ["en" ]
1312+ )
13071313
13081314 assert resp ["data" ]["sendSubmission" ]["__typename" ] == "Submission"
13091315 assert resp ["data" ]["sendSubmission" ]["title" ] == "My fourth talk"
0 commit comments