Browse Source

Mezi ulicí a číslem popisným má být mezera

middleware_test
Pavel 'LEdoian' Turinsky 5 years ago
parent
commit
18bb451bcf
  1. 2
      seminar/testutils.py

2
seminar/testutils.py

@ -78,7 +78,7 @@ def gen_osoby(rnd, size):
rnd.randint(1, 28)) rnd.randint(1, 28))
ulic = rnd.choice(seznam_ulic) ulic = rnd.choice(seznam_ulic)
cp = rnd.randint(1, 99) cp = rnd.randint(1, 99)
ulice = "".join([ulic, str(cp)]) ulice = " ".join([ulic, str(cp)])
mesto = rnd.choice(seznam_mest) mesto = rnd.choice(seznam_mest)
psc = "".join([str(rnd.choice([k for k in range(10)])) for i in range(5)]) psc = "".join([str(rnd.choice([k for k in range(10)])) for i in range(5)])

Loading…
Cancel
Save