Commits

Vernon Cole  committed a710c37

define testMethodName for dbapi20 unit tests

  • Participants
  • Parent commits eca87dc

Comments (0)

Files changed (1)

File tests/test_main/apitest/tests.py

     except:
         connect_kw_args['name'] = 'test_' + connect_kw_args['name']  # the test connector will have mangled the name
 
-#    def _connect(self):
-#        return connection
+    def __init__(self,arg):
+        dbapi20.DatabaseAPI20Test.__init__(self,arg)
+
+    def testMethodName(self):
+        return self.id().split('.')[-1]
     
     def _try_run(self, *args):
         con = self._connect()