Contact: fumanchu@aminus.org

Log in as guest/dejavu to create tickets

I think I've seen this ORM somewhere before...

root/trunk/test/test_storecaching.py

Revision 127 (checked in by fumanchu, 7 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 import os
2
3 shelvedb = "dejavu.storage.storeshelve.StorageManagerShelve"
4 proxiedopts = {u'Path': os.path.join(os.getcwd(), os.path.dirname(__file__))}
5 opts = {'Next Store': 'shelvedb',
6         'Lifetime': '10 minutes',
7         }
8 SM_class = "dejavu.storage.CachingProxy"
9
10
11 def run():
12     import zoo_fixture
13     # Isolate schema changes from one test to the next.
14     reload(zoo_fixture)
15    
16     zoo_fixture.init()
17     zoo_fixture.arena.add_store('shelvedb', shelvedb, proxiedopts)
18     zoo_fixture.run(SM_class, opts)
19
20
21 if __name__ == "__main__":
22     run()
Note: See TracBrowser for help on using the browser.