diff options
Diffstat (limited to 'pykolab')
-rw-r--r-- | pykolab/tests/__init__.py | 7 | ||||
-rw-r--r-- | pykolab/tests/kcal-event.tpl | 3 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pykolab/tests/__init__.py b/pykolab/tests/__init__.py index ad7a063..2e7994b 100644 --- a/pykolab/tests/__init__.py +++ b/pykolab/tests/__init__.py @@ -54,7 +54,7 @@ class Tests(object): for user in users: # Each of the users gets 500 events num = 1 - while num < 501: + while num < 21: uid = "%s.%s" %(str(random.randint(1000000000,9999999999)),str(random.randint(0,999)).zfill(3)) if not uid in uids_alloc: uids_alloc.append(uid) @@ -89,9 +89,10 @@ class Tests(object): 'time_end': time_end } - if num % 100 == 0: + if num % 5 == 0: print "User %s calendaring events %s done" %(user,num) - event['recurrence'] = """<recurrence cycle="weekly"> + event['recurrence'] = """ +<recurrence cycle="weekly"> <interval>1</interval> <day>thursday</day> <range type="none"></range> diff --git a/pykolab/tests/kcal-event.tpl b/pykolab/tests/kcal-event.tpl index 5e668cc..7eadb80 100644 --- a/pykolab/tests/kcal-event.tpl +++ b/pykolab/tests/kcal-event.tpl @@ -50,8 +50,7 @@ Content-Disposition: attachment; <request-response>false</request-response> <invitation-sent>false</invitation-sent> <role>required</role> - </attendee> -@@recurrence@@ + </attendee>@@recurrence@@ <alarm>15</alarm> <advanced-alarms> <alarm type="display"> |