testutil.py: odsazení
This commit is contained in:
		
							parent
							
								
									0faf1d381e
								
							
						
					
					
						commit
						42fcc91a68
					
				
					 1 changed files with 9 additions and 4 deletions
				
			
		|  | @ -154,7 +154,8 @@ def gen_ulohy_do_cisla(rnd, cislo, organizatori, resitele, slovnik_cisel, size): | ||||||
| 				cislo_zadani=slovnik_cisel[cislo-2],  | 				cislo_zadani=slovnik_cisel[cislo-2],  | ||||||
| 				cislo_reseni=slovnik_cisel[cislo],  | 				cislo_reseni=slovnik_cisel[cislo],  | ||||||
| 				cislo_deadline=slovnik_cisel[cislo],  | 				cislo_deadline=slovnik_cisel[cislo],  | ||||||
| 				max_body = rnd.randint(1, 8)) | 				max_body = rnd.randint(1, 8) | ||||||
|  | 			) | ||||||
| 			p.zadani = " ".join( | 			p.zadani = " ".join( | ||||||
| 				[rnd.choice(sloveso),  | 				[rnd.choice(sloveso),  | ||||||
| 				rnd.choice(koho),  | 				rnd.choice(koho),  | ||||||
|  | @ -187,9 +188,13 @@ def gen_ulohy_do_cisla(rnd, cislo, organizatori, resitele, slovnik_cisel, size): | ||||||
| 
 | 
 | ||||||
| def gen_soustredeni(): | def gen_soustredeni(): | ||||||
| 	# TODO: vice soustredeni a k nim nahodne podmnoziny organizatoru a ucastniku | 	# TODO: vice soustredeni a k nim nahodne podmnoziny organizatoru a ucastniku | ||||||
| 	sous = Soustredeni.objects.create(rocnik=Rocnik.objects.first(), verejne_db=True,  | 	sous = Soustredeni.objects.create( | ||||||
| 		misto=u'Někde',	datum_zacatku=datetime.date(2000, 11, 23),  | 		rocnik=Rocnik.objects.first(), | ||||||
| 		datum_konce=datetime.date(2000, 11, 27)) | 		verejne_db=True,  | ||||||
|  | 		misto=u'Někde', | ||||||
|  | 		datum_zacatku=datetime.date(2000, 11, 23),  | ||||||
|  | 		datum_konce=datetime.date(2000, 11, 27) | ||||||
|  | 	) | ||||||
| 
 | 
 | ||||||
| 	for res in rnd.sample(resitele, 6): | 	for res in rnd.sample(resitele, 6): | ||||||
| 		Soustredeni_Ucastnici.objects.create(resitel=res, soustredeni=sous) | 		Soustredeni_Ucastnici.objects.create(resitel=res, soustredeni=sous) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Tomáš Domes
						Tomáš Domes