summaryrefslogtreecommitdiffstats
path: root/pykolab/tests/__init__.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-10-22 23:11:29 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-10-22 23:11:29 +0100
commit7f9812c072cf5d4f0088a592d6913a5bdddb6ba2 (patch)
tree39eed55f91f18e3ad6f7af40414bc6d3e4d20756 /pykolab/tests/__init__.py
parent3cb81928f93e806f6f930e57eaff70246335ecc3 (diff)
downloadpykolab-7f9812c072cf5d4f0088a592d6913a5bdddb6ba2.tar.gz
Update the line termination on the recurrence
Reduce the number of iterations
Diffstat (limited to 'pykolab/tests/__init__.py')
-rw-r--r--pykolab/tests/__init__.py7
1 files changed, 4 insertions, 3 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>