From 84f2eccea7759dc694c83b770b0066a11cae7ecd Mon Sep 17 00:00:00 2001 From: MR Lemon Date: Tue, 12 May 2020 17:06:26 +0100 Subject: started to think about tests for assessment app --- ctrack/organisations/management/commands/populate_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctrack/organisations/management/commands') diff --git a/ctrack/organisations/management/commands/populate_db.py b/ctrack/organisations/management/commands/populate_db.py index 1b10520..c2b8a85 100644 --- a/ctrack/organisations/management/commands/populate_db.py +++ b/ctrack/organisations/management/commands/populate_db.py @@ -588,7 +588,7 @@ class Command(BaseCommand): for al in achievement_levels: for co in cos: - for igp in range(2): + for igp in range(1, random.randint(2,5)): dtext_fake = Faker() fake_txt = f"IGP {igp}/{al.descriptor}/{co.designation}: {dtext_fake.paragraph()}" IGP.objects.create( -- cgit v1.2.3