[CalendarServer-changes] [6664] CalendarServer/trunk/calendarserver/tools/test/test_principals.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Dec 2 11:41:25 PST 2010
Revision: 6664
http://trac.macosforge.org/projects/calendarserver/changeset/6664
Author: sagen at apple.com
Date: 2010-12-02 11:41:22 -0800 (Thu, 02 Dec 2010)
Log Message:
-----------
Make sure calendaruserproxy.ProxyDBService is properly assigned within this unit test.
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/test/test_principals.py
Modified: CalendarServer/trunk/calendarserver/tools/test/test_principals.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/test/test_principals.py 2010-12-01 15:48:59 UTC (rev 6663)
+++ CalendarServer/trunk/calendarserver/tools/test/test_principals.py 2010-12-02 19:41:22 UTC (rev 6664)
@@ -22,6 +22,8 @@
from twistedcaldav.config import config
from twistedcaldav.directory.directory import DirectoryError
+from twistedcaldav.directory import calendaruserproxy
+
from twistedcaldav.test.util import TestCase, CapturingProcessProtocol
from calendarserver.tap.util import directoryFromConfig
@@ -33,6 +35,9 @@
def setUp(self):
super(ManagePrincipalsTestCase, self).setUp()
+ # Since this test operates on proxy db, we need to assign the service:
+ calendaruserproxy.ProxyDBService = calendaruserproxy.ProxySqliteDB(os.path.abspath(self.mktemp()))
+
config.GlobalAddressBook.Enabled = False
testRoot = os.path.join(os.path.dirname(__file__), "principals")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101202/73744b77/attachment.html>
More information about the calendarserver-changes
mailing list