Fix: default field generation
This commit is contained in:
@@ -1,10 +1,24 @@
|
||||
from random import randint
|
||||
from uuid import UUID
|
||||
|
||||
from backend.model.student import Student
|
||||
from backend.model.tribe import Tribe
|
||||
from tests.model.fakes import build_assessments, build_tribes
|
||||
|
||||
|
||||
def test_init_student():
|
||||
tribe = build_tribes(1)[0]
|
||||
student = Student(name="Bob", tribe=tribe)
|
||||
print(student)
|
||||
|
||||
assert type(student.name) == str
|
||||
assert type(student.tribe) == Tribe
|
||||
assert type(student.id) == str
|
||||
|
||||
student2 = Student(name="Hop", tribe=tribe)
|
||||
assert student.id != student2.id
|
||||
|
||||
|
||||
def test_tribe_register_assessment():
|
||||
assessments_qty = randint(1, 10)
|
||||
tribes = build_tribes(1)
|
||||
|
||||
Reference in New Issue
Block a user