1.1 --- a/tests/test_handle.py Fri Nov 06 13:53:32 2015 +0100
1.2 +++ b/tests/test_handle.py Fri Nov 06 13:54:34 2015 +0100
1.3 @@ -94,19 +94,19 @@
1.4
1.5 if __name__ == "__main__":
1.6 try:
1.7 - action, store_dir, user = sys.argv[1:4]
1.8 + action, store_dir, preferences_dir, user = sys.argv[1:5]
1.9 if action == "counter":
1.10 - start, end = sys.argv[4:6]
1.11 - i = 6
1.12 + start, end = sys.argv[5:7]
1.13 + i = 7
1.14 else:
1.15 start, end = None, None
1.16 - i = 4
1.17 + i = 5
1.18 uid, recurrenceid = (sys.argv[i:i+2] + [None] * 2)[:2]
1.19 except ValueError:
1.20 print >>sys.stderr, """\
1.21 -Need 'accept', 'counter' or 'decline', a store directory, user URI, any
1.22 -counter-proposal datetimes (see below), plus the appropriate event UID and
1.23 -RECURRENCE-ID (if a recurrence is involved).
1.24 +Need 'accept', 'counter' or 'decline', a store directory, a preferences
1.25 +directory, user URI, any counter-proposal datetimes (see below), plus the
1.26 +appropriate event UID and RECURRENCE-ID (if a recurrence is involved).
1.27
1.28 The RECURRENCE-ID must be in exactly the form employed by the store, not a
1.29 different but equivalent representation.
1.30 @@ -132,7 +132,7 @@
1.31 fragment = parse_object(sys.stdin, "utf-8")
1.32
1.33 obj = Object(fragment)
1.34 - handler = TestClient(obj, user, Messenger(), store)
1.35 + handler = TestClient(obj, user, Messenger(), store, None, preferences_dir)
1.36 response = handler.handle_request(action, start, end)
1.37
1.38 if response: