From 7f9812c072cf5d4f0088a592d6913a5bdddb6ba2 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" Date: Fri, 22 Oct 2010 23:11:29 +0100 Subject: Update the line termination on the recurrence Reduce the number of iterations --- pykolab/tests/__init__.py | 7 ++++--- pykolab/tests/kcal-event.tpl | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'pykolab') 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'] = """ + event['recurrence'] = """ + 1 thursday 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; false false required - -@@recurrence@@ + @@recurrence@@ 15 -- cgit v1.1