Esempio n. 1
0
    def setup(self):
        _sessions.clear()
        _mapper_registry.clear()

        # enable query caching, however make the cache small so that
        # the tests don't take too long.  issues w/ caching include making
        # sure sessions don't get stuck inside of it.  However it will
        # make tests like test_mapper_reset take a long time because mappers
        # are very much a part of what's in the cache.
        self.engine = engines.testing_engine(
            options={"use_reaper": False, "query_cache_size": 10}
        )
Esempio n. 2
0
 def setup(self):
     _sessions.clear()
     _mapper_registry.clear()
     self.engine = engines.testing_engine(options={"use_reaper": False})
Esempio n. 3
0
 def setUp(self):
     _sessions.clear()
     _mapper_registry.clear()
 def setup(self):
     _sessions.clear()
     _mapper_registry.clear()