~cboylan/+junk/test_drizzle_dbapi

« back to all changes in this revision

Viewing changes to test_gadfly_dbapi20.py

  • Committer: zenzen
  • Date: 2003-02-12 02:48:46 UTC
  • Revision ID: cvs-1:zenzen-20030212024846-mbxbp2yhdoe104l8
Test suite mostly working against Psycopg. Still a few things to sort through.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
'''
3
 
$Id: test_gadfly_dbapi20.py,v 1.1 2003/02/11 15:09:17 zenzen Exp $
 
3
$Id: test_gadfly_dbapi20.py,v 1.2 2003/02/12 09:48:46 zenzen Exp $
4
4
'''
5
5
 
6
 
__rcs_id__  = '$Id: test_gadfly_dbapi20.py,v 1.1 2003/02/11 15:09:17 zenzen Exp $'
7
 
__version__ = '$Revision: 1.1 $'[11:-2]
 
6
__rcs_id__  = '$Id: test_gadfly_dbapi20.py,v 1.2 2003/02/12 09:48:46 zenzen Exp $'
 
7
__version__ = '$Revision: 1.2 $'[11:-2]
8
8
__author__ = 'Stuart Bishop <zen@shangri-la.dropbear.id.au>'
9
9
 
10
10
import unittest
 
11
import shutil
 
12
import os
 
13
import os.path
11
14
import gadfly
12
15
from dbapi20 import test_DBAPI20
13
16
 
 
17
dbdir = os.path.join(os.path.dirname(__file__),'_db_dir')
 
18
 
14
19
class test_GadflyDBAPI20(test_DBAPI20,unittest.TestCase):
15
 
    driver_module = gadfly
 
20
    driver = gadfly
 
21
    connect_kw_args = {'dbname': 'test','dbdir': dbdir}
 
22
 
 
23
    def setUp(self):
 
24
        if os.path.exists(dbdir):
 
25
            shutil.rmtree(dbdir)
 
26
        os.makedirs(dbdir)
 
27
 
 
28
    def tearDown(self):
 
29
        if os.path.exists(dbdir):
 
30
            shutil.rmtree(dbdir)
16
31
 
17
32
    def test_callproc(self): pass
18
33
    def test_nextset(self): pass