Browse Source

Male zlepseni test. dat

remotes/origin/feincms
Tomas Gavenciak 10 years ago
parent
commit
997e4bcdfd
  1. 4
      seminar/testutils.py

4
seminar/testutils.py

@ -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])

Loading…
Cancel
Save