Skip to content

Commit

Permalink
add school teacher invitation fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Feb 20, 2024
1 parent 19b4380 commit e022dc3
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions backend/api/fixtures/school_1_teacher_invitations.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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": "[email protected]",
"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": "[email protected]",
"invited_teacher_is_admin": false,
"expiry": "9999-02-09 20:26:08.298402+00:00"
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e022dc3

Please sign in to comment.