コード例 #1
0
ファイル: plugin_base.py プロジェクト: msluyter/sqlalchemy
def stop_test_class(cls):
    #from sqlalchemy import inspect
    #assert not inspect(testing.db).get_table_names()
    engines.testing_reaper._stop_test_ctx()
    if not options.low_connections:
        assertions.global_cleanup_assertions()
    _restore_engine()
コード例 #2
0
def stop_test_class_outside_fixtures(cls):
    provision.stop_test_class_outside_fixtures(config, config.db, cls)
    try:
        if not options.low_connections:
            assertions.global_cleanup_assertions()
    finally:
        _restore_engine()
コード例 #3
0
 def stopContext(self, ctx):
     if not isinstance(ctx, type) \
         or not issubclass(ctx, fixtures.TestBase):
         return
     engines.testing_reaper._stop_test_ctx()
     if not options.low_connections:
         assertions.global_cleanup_assertions()
     self._restore_engine(ctx)
コード例 #4
0
ファイル: noseplugin.py プロジェクト: biddyweb/turbo-lister
 def stopContext(self, ctx):
     if not isinstance(ctx, type) \
         or not issubclass(ctx, fixtures.TestBase):
         return
     engines.testing_reaper._stop_test_ctx()
     if not options.low_connections:
         assertions.global_cleanup_assertions()
     self._restore_engine(ctx)
コード例 #5
0
def stop_test_class(cls):
    # from sqlalchemy import inspect
    # assert not inspect(testing.db).get_table_names()

    provision.stop_test_class(config, config.db, cls)
    engines.testing_reaper._stop_test_ctx()
    try:
        if not options.low_connections:
            assertions.global_cleanup_assertions()
    finally:
        _restore_engine()
コード例 #6
0
def final_process_cleanup():
    engines.testing_reaper.final_cleanup()
    assertions.global_cleanup_assertions()
    _restore_engine()
コード例 #7
0
ファイル: plugin_base.py プロジェクト: tattoomees/SickRage
def stop_test_class(cls):
    engines.testing_reaper._stop_test_ctx()
    if not options.low_connections:
        assertions.global_cleanup_assertions()
    _restore_engine()
コード例 #8
0
ファイル: plugin_base.py プロジェクト: bombless/Arianrhod
def stop_test_class(cls):
    engines.testing_reaper._stop_test_ctx()
    if not options.low_connections:
        assertions.global_cleanup_assertions()
    _restore_engine()
コード例 #9
0
ファイル: plugin_base.py プロジェクト: 2531699560/flask2
def final_process_cleanup():
    engines.testing_reaper._stop_test_ctx_aggressive()
    assertions.global_cleanup_assertions()
    _restore_engine()
コード例 #10
0
ファイル: plugin_base.py プロジェクト: FluxIX/sqlalchemy
def final_process_cleanup():
    engines.testing_reaper._stop_test_ctx_aggressive()
    assertions.global_cleanup_assertions()
    _restore_engine()