Commits

Nathan Wright  committed 7d32d77

Move a SQLLite datetime test to a new DateTimeTest case

  • Participants
  • Parent commits 3b45803

Comments (0)

Files changed (1)

File test/dialect/test_sqlite.py

                 ).scalar()
             )
 
-    def test_time_microseconds(self):
-        dt = datetime.datetime(2008, 6, 27, 12, 0, 0, 125, )
-        eq_(str(dt), '2008-06-27 12:00:00.000125')
-        sldt = sqlite.DATETIME()
-        bp = sldt.bind_processor(None)
-        eq_(bp(dt), '2008-06-27 12:00:00.000125')
-        rp = sldt.result_processor(None, None)
-        eq_(rp(bp(dt)), dt)
-
     def test_native_datetime(self):
         dbapi = testing.db.dialect.dbapi
         connect_args = {'detect_types': dbapi.PARSE_DECLTYPES \
         assert isinstance(t2.c.y.type, sqltypes.NullType)
 
 
+class DateTimeTest(fixtures.TestBase, AssertsCompiledSQL):
+
+    def test_time_microseconds(self):
+        dt = datetime.datetime(2008, 6, 27, 12, 0, 0, 125, )
+        eq_(str(dt), '2008-06-27 12:00:00.000125')
+        sldt = sqlite.DATETIME()
+        bp = sldt.bind_processor(None)
+        eq_(bp(dt), '2008-06-27 12:00:00.000125')
+        rp = sldt.result_processor(None, None)
+        eq_(rp(bp(dt)), dt)
+
+
 class DefaultsTest(fixtures.TestBase, AssertsCompiledSQL):
 
     __only_on__ = 'sqlite'