Skip to content

Commit 0442a49

Browse files
committed
Fix test
1 parent f8d487e commit 0442a49

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

backend/api/submissions/tests/test_send_submission.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)