Male zlepseni test. dat

This commit is contained in:
Tomas Gavenciak 2015-04-02 00:12:45 +02:00
parent b6003c4094
commit 997e4bcdfd

View file

@ -55,8 +55,6 @@ def create_test_data(size = 6, rnd = None):
# cisla # cisla
cisel = rnd.randint(4, 6) cisel = rnd.randint(4, 6)
if ri == last_rocnik:
cisel = 1
cs = {} cs = {}
for ci in range(1, cisel + 1): for ci in range(1, cisel + 1):
@ -84,5 +82,5 @@ def create_test_data(size = 6, rnd = None):
body = rnd.randint(0, p.body), cislo_body = cs[ci]) body = rnd.randint(0, p.body), cislo_body = cs[ci])
nastaveni = Nastaveni.objects.create(aktualni_rocnik = Rocnik.objects.last(), nastaveni = Nastaveni.objects.create(aktualni_rocnik = Rocnik.objects.last(),
aktualni_cislo = Cislo.objects.last()) aktualni_cislo = Cislo.objects.all()[1])