[CalendarServer-changes] [8526] CalendarServer/branches/users/glyph/skip-lonely-vtimezones

source_changes at macosforge.org source_changes at macosforge.org
Fri Jan 13 14:02:57 PST 2012


Revision: 8526
          http://trac.macosforge.org/projects/calendarserver/changeset/8526
Author:   glyph at apple.com
Date:     2012-01-13 14:02:57 -0800 (Fri, 13 Jan 2012)
Log Message:
-----------
create a new requirements dictionary each time so that it can be modified without harming other tests

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/skip-lonely-vtimezones/txdav/caldav/datastore/test/common.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/skip-lonely-vtimezones/

Modified: CalendarServer/branches/users/glyph/skip-lonely-vtimezones/txdav/caldav/datastore/test/common.py
===================================================================
--- CalendarServer/branches/users/glyph/skip-lonely-vtimezones/txdav/caldav/datastore/test/common.py	2012-01-13 22:02:54 UTC (rev 8525)
+++ CalendarServer/branches/users/glyph/skip-lonely-vtimezones/txdav/caldav/datastore/test/common.py	2012-01-13 22:02:57 UTC (rev 8526)
@@ -26,6 +26,8 @@
 from twisted.internet.protocol import Protocol
 from twisted.python import hashlib
 
+from twext.python.clsprop import classproperty
+
 from twext.enterprise.ienterprise import AlreadyFinishedError
 
 from twext.python.filepath import CachingFilePath as FilePath
@@ -230,7 +232,14 @@
         hashlib.md5("DEFG").hexdigest(),
         hashlib.md5("HIJK").hexdigest(),
     )
-    requirements = {
+
+    @classproperty(cache=False)
+    def requirements(cls):
+        metadata1 = cls.metadata1.copy()
+        metadata2 = cls.metadata2.copy()
+        metadata3 = cls.metadata3.copy()
+        metadata4 = cls.metadata4.copy()
+        return {
         "home1": {
             "calendar_1": {
                 "1.ics": (cal1Root.child("1.ics").getContent(), metadata1),
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120113/358b4136/attachment.html>


More information about the calendarserver-changes mailing list