Contact: fumanchu@aminus.org

Log in as guest/dejavu to create tickets

root/tags/1.4.0/test/test_storesqlite.py

Revision 127 (checked in by fumanchu, 3 years ago)

Initial implementation of #16 (schema changes). See modeling.html ("Managing Schema Changes") for summary. Oh, and Unit has a new remove_property method.

  • Property svn:eol-style set to native
Line 
1
2 try:
3     import _sqlite
4 except ImportError:
5     def run():
6         import warnings
7         warnings.warn("The _sqlite module could not be imported. "
8                       "The SQLite test will not be run.")
9 else:
10     SM_class = "dejavu.storage.storesqlite.StorageManagerSQLite"
11     opts = {"Database": "sqlite_zoo_test"}
12    
13     def run():
14         import zoo_fixture
15         # Isolate schema changes from one test to the next.
16         reload(zoo_fixture)
17         zoo_fixture.init()
18         zoo_fixture.run(SM_class, opts)
19
20 if __name__ == "__main__":
21     run()
Note: See TracBrowser for help on using the browser.