Ejemplo n.º 1
0
def setup():
    # super hack:
    if conf.HEAVY_DSN == 'sqlite:///:tmp:':
        conf.HEAVY_DSN_IS_TEMPIO = True
        conf.reset_heavy_dsn()

    # this is here because the doc generator also runs doctests.
    # should fix that to use proper _test() methods for a module
    teardown_examples()
Ejemplo n.º 2
0
def setup():
    # super hack:
    if conf.HEAVY_DSN == 'sqlite:///:tmp:':
        conf.HEAVY_DSN_IS_TEMPIO = True
        conf.reset_heavy_dsn()
    
    # this is here because the doc generator also runs doctests.
    # should fix that to use proper _test() methods for a module
    teardown_examples()
Ejemplo n.º 3
0
 def tearDown(self):
     """should unload the dataset."""
     conn = self.conn
     teardown_db(conn)
     conn.close()
     conf.reset_heavy_dsn()
Ejemplo n.º 4
0
 def tearDown(self):
     """should unload the dataset."""
     store = self.store
     teardown_db(store)
     store.close()
     conf.reset_heavy_dsn()
Ejemplo n.º 5
0
 def tearDown(self):
     """should unload the dataset."""
     conn = self.conn
     teardown_db(conn)
     conn.close()
     conf.reset_heavy_dsn()
Ejemplo n.º 6
0
 def tearDown(self):
     """should unload the dataset."""
     store = self.store
     teardown_db(store)
     store.close()
     conf.reset_heavy_dsn()