コード例 #1
0
ファイル: __init__.py プロジェクト: w31rd0/fixture
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()
コード例 #2
0
ファイル: __init__.py プロジェクト: fixture-py/fixture
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()
コード例 #3
0
 def tearDown(self):
     """should unload the dataset."""
     conn = self.conn
     teardown_db(conn)
     conn.close()
     conf.reset_heavy_dsn()
コード例 #4
0
ファイル: test_storm_loadable.py プロジェクト: JamesX88/tes
 def tearDown(self):
     """should unload the dataset."""
     store = self.store
     teardown_db(store)
     store.close()
     conf.reset_heavy_dsn()
コード例 #5
0
 def tearDown(self):
     """should unload the dataset."""
     conn = self.conn
     teardown_db(conn)
     conn.close()
     conf.reset_heavy_dsn()
コード例 #6
0
 def tearDown(self):
     """should unload the dataset."""
     store = self.store
     teardown_db(store)
     store.close()
     conf.reset_heavy_dsn()