From 04a79e69f479643af9b630d26aa3c41b5403342e Mon Sep 17 00:00:00 2001 From: faucomte97 Date: Tue, 21 Nov 2023 17:17:49 +0000 Subject: [PATCH] Update tests --- game/tests/test_level_moderation.py | 2 +- game/tests/utils/teacher.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/game/tests/test_level_moderation.py b/game/tests/test_level_moderation.py index 85781d7d4..55cdb15f1 100644 --- a/game/tests/test_level_moderation.py +++ b/game/tests/test_level_moderation.py @@ -109,7 +109,7 @@ def test_moderation_admin(self): email1, password1 = signup_teacher_directly() email2, password2 = signup_teacher_directly() school = create_organisation_directly(email1) - join_teacher_to_organisation(email2, school.name, school.postcode) + join_teacher_to_organisation(email2, school.name) # Create one class and student for each teacher _, class_name1, access_code1 = create_class_directly(email1) diff --git a/game/tests/utils/teacher.py b/game/tests/utils/teacher.py index 6164cc9e5..ce816bdcb 100644 --- a/game/tests/utils/teacher.py +++ b/game/tests/utils/teacher.py @@ -7,7 +7,6 @@ def create_school() -> School: school = School() school.name = "".join(random.choice(string.ascii_uppercase) for _ in range(10)) - school.postcode = "".join(random.choice(string.ascii_uppercase) for _ in range(7)) school.country = "United Kingdom" school.save()