blob: 21b228696ee3b6f6b9e91d6d1f9b57d68465d790 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import factory
from factory import Faker
from ctrack.assessments.models import AchievementLevel
class AchievementLevelFactory(factory.DjangoModelFactory):
descriptor = Faker("text", max_nb_chars=30, ext_word_list=None)
colour_description = Faker("text", max_nb_chars=30, ext_word_list=None)
colour_hex = Faker("text", max_nb_chars=30, ext_word_list=None)
class Meta:
model = AchievementLevel
class IGPFactory(factory.DjangoModelFactory):
achievement_level = factory.SubFactory(AchievementLevelFactory)
|