diff --git a/backend/api/fixtures/school_1_teacher_invitations.json b/backend/api/fixtures/school_1_teacher_invitations.json new file mode 100644 index 00000000..c1a0ab07 --- /dev/null +++ b/backend/api/fixtures/school_1_teacher_invitations.json @@ -0,0 +1,44 @@ +[ + { + "model": "common.schoolteacherinvitation", + "pk": 1, + "fields": { + "token": "pbkdf2_sha256$260000$hbsAadmrRo744BTM6NofUb$ePs/7vi6sSzOPpiWxNhXMZnNnE7aXOpzIhxrAa/rdiU=", + "school": 2, + "from_teacher": 7, + "invited_teacher_first_name": "Invited", + "invited_teacher_last_name": "Teacher", + "invited_teacher_email": "invited@teacher.com", + "invited_teacher_is_admin": false, + "expiry": "2024-02-09 20:26:08.298402+00:00" + } + }, + { + "model": "common.schoolteacherinvitation", + "pk": 2, + "fields": { + "token": "pbkdf2_sha256$260000$hbsAadmrRo744BTM6NofUb$ePs/7vi6sSzOPpiWxNhXMZnNnE7aXOpzIhxrAa/rdiU=", + "school": 2, + "from_teacher": 7, + "invited_teacher_first_name": "Invited", + "invited_teacher_last_name": "Teacher", + "invited_teacher_email": "invited@teacher.com", + "invited_teacher_is_admin": false, + "expiry": "9999-02-09 20:26:08.298402+00:00" + } + }, + { + "model": "common.schoolteacherinvitation", + "pk": 3, + "fields": { + "token": "pbkdf2_sha256$260000$hbsAadmrRo744BTM6NofUb$ePs/7vi6sSzOPpiWxNhXMZnNnE7aXOpzIhxrAa/rdiU=", + "school": 2, + "from_teacher": 7, + "invited_teacher_first_name": "Invited", + "invited_teacher_last_name": "Teacher", + "invited_teacher_email": "teacher@school1.com", + "invited_teacher_is_admin": false, + "expiry": "9999-02-09 20:26:08.298402+00:00" + } + } +] \ No newline at end of file diff --git a/backend/api/tests/serializers/test_school_teacher_invitation.py b/backend/api/tests/serializers/test_school_teacher_invitation.py index ca35323a..3790e1c9 100644 --- a/backend/api/tests/serializers/test_school_teacher_invitation.py +++ b/backend/api/tests/serializers/test_school_teacher_invitation.py @@ -18,7 +18,7 @@ class TestSchoolTeacherInvitationSerializer( ModelSerializerTestCase[SchoolTeacherInvitation] ): model_serializer_class = SchoolTeacherInvitationSerializer - fixtures = ["school_1"] + fixtures = ["school_1", "school_1_teacher_invitations"] def setUp(self): self.admin_school_teacher_user = AdminSchoolTeacherUser.objects.get(