[CalendarServer-changes] [7404] CalendarServer/trunk/txdav/common/datastore/test/test_sql_tables.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Apr 29 14:28:32 PDT 2011


Revision: 7404
          http://trac.macosforge.org/projects/calendarserver/changeset/7404
Author:   glyph at apple.com
Date:     2011-04-29 14:28:32 -0700 (Fri, 29 Apr 2011)
Log Message:
-----------
Make sure that changes to the schema still allow it to be translated.

Modified Paths:
--------------
    CalendarServer/trunk/txdav/common/datastore/test/test_sql_tables.py

Modified: CalendarServer/trunk/txdav/common/datastore/test/test_sql_tables.py
===================================================================
--- CalendarServer/trunk/txdav/common/datastore/test/test_sql_tables.py	2011-04-29 21:28:01 UTC (rev 7403)
+++ CalendarServer/trunk/txdav/common/datastore/test/test_sql_tables.py	2011-04-29 21:28:32 UTC (rev 7404)
@@ -23,7 +23,9 @@
 by L{txdav.base.datastore.test.test_parseschema}.
 """
 
-from txdav.common.datastore.sql_tables import schema
+from cStringIO import StringIO
+
+from txdav.common.datastore.sql_tables import schema, _translateSchema
 from twisted.trial.unittest import TestCase
 
 class SampleSomeColumns(TestCase):
@@ -36,3 +38,15 @@
         self.assertEquals(schema.ADDRESSBOOK_OBJECT.RESOURCE_ID.model.name,
                           "RESOURCE_ID")
 
+
+    def test_schemaTranslation(self):
+        """
+        Basic integration test to make sure that the schema can be translated
+        without exception.
+        """
+        # TODO: better test coverage of the actual functionality here; there are
+        # no unit tests.
+        _translateSchema(StringIO())
+
+
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110429/780d71ee/attachment.html>


More information about the calendarserver-changes mailing list