diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2010-10-22 23:11:29 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2010-10-22 23:11:29 +0100 |
commit | 7f9812c072cf5d4f0088a592d6913a5bdddb6ba2 (patch) | |
tree | 39eed55f91f18e3ad6f7af40414bc6d3e4d20756 /pykolab | |
parent | 3cb81928f93e806f6f930e57eaff70246335ecc3 (diff) | |
download | pykolab-7f9812c072cf5d4f0088a592d6913a5bdddb6ba2.tar.gz |
Update the line termination on the recurrence
Reduce the number of iterations
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"> |