Contact: fumanchu@aminus.org

Log in as guest/geniusql to create tickets

root/trunk/geniusql/test/test_sqlite_ondisk.py

Revision 293 (checked in by lakin, 1 year ago)

cleaning up the tests, and removing providers that we don't have the manpower to support. If someone would like to maintain one of these providers we will support their efforts to do so.

Line 
1 # Generate a path name for our database file.
2 import os
3 thisdir = os.path.join(os.getcwd(), os.path.dirname(__file__))
4 dbpath = os.path.join(thisdir, "sqlite_zoo_test")
5 if os.path.exists(dbpath):
6     os.remove(dbpath)
7
8 import _sqlite3 as _sqlite
9
10 from geniusql.test import zoo_fixture, test
11
12 opts = {'name': dbpath,
13         # This has to be ridiculously large because SQLite isn't
14         # very good at high concurrency, and our isolation and
15         # multithreading tests tend to fail, or sometimes even
16         # crash SQLite.
17         'deadlock_timeout': 60}
18 db = test.DBConfig('sqlite', opts)
19 setUp = db.setUp
20 tearDown = db.tearDown
21
22 #-------------------------------------------------------------------------------
23 class Phase1_ZooTests(zoo_fixture.Phase1_ZooTests):
24     pass
25 db.register_db_test_class(Phase1_ZooTests)
26
27 #---------------------------------------------------------------------------
28 class Phase2_ConcurrencyTests(zoo_fixture.Phase2_ConcurrencyTests):
29     pass
30 db.register_db_test_class(Phase2_ConcurrencyTests)
31
32 #---------------------------------------------------------------------------
33 class Phase2_IsolationTests(zoo_fixture.Phase2_IsolationTests):
34     pass
35 db.register_db_test_class(Phase2_IsolationTests)
36
37 #-------------------------------------------------------------------------------
38 class Phase2_TransactionTests(zoo_fixture.Phase2_TransactionTests):
39     pass
40 db.register_db_test_class(Phase2_TransactionTests)
41
42 #-------------------------------------------------------------------------------
43 # TODO: thi sisn't ported yet.
44 #class Phase2_NumericTests(zoo_fixture.Phase2_NumericTests):
45     #pass
46 #db.register_db_test_class(Phase2_NumericTests)
47
48 #-------------------------------------------------------------------------------
49 class Phase2_ConnectionTests(zoo_fixture.Phase2_ConnectionTests):
50     pass
51 db.register_db_test_class(Phase2_ConnectionTests)
52
53 #-------------------------------------------------------------------------------
54 class Phase2_SQLInjectionTests(zoo_fixture.Phase2_SQLInjectionTests):
55     pass
56 db.register_db_test_class(Phase2_SQLInjectionTests)
57
Note: See TracBrowser for help on using the browser.