test_0_mem.py (694B)
1 # standard imports 2 import unittest 3 import logging 4 5 # external imports 6 from shep import State 7 8 # local imports 9 from chainsyncer.store.mem import SyncMemStore 10 from chainsyncer.unittest.store import TestStoreBase 11 12 logging.basicConfig(level=logging.DEBUG) 13 logg = logging.getLogger() 14 15 16 class StoreFactory: 17 18 def create(self, session_id=None): 19 return SyncMemStore(session_id=session_id) 20 21 22 class TestMem(TestStoreBase): 23 24 def setUp(self): 25 super(TestMem, self).setUp() 26 self.store_factory = StoreFactory().create 27 self.persist = False 28 29 30 if __name__ == '__main__': 31 TestStoreBase.link(TestMem) 32 # Remove tests that test persistence of state 33 unittest.main()