Feat: build tribe and student model

This commit is contained in:
2022-12-20 06:59:35 +01:00
parent a2a0269f39
commit c4fcb6a0ef
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
from backend.model.student import Student, Tribe
def test_tribe_register_student():
tribe = Tribe("foo", "2nd")
student = Student("1", "Bob", tribe)
assert len(tribe.students) == 1
assert tribe.students[0] == student