Exemplo n.º 1
0
def teardown_in_memory_sqlite_databases():
    """Cleans up state after a test started with use_in_memory_sqlite_database() is complete."""
    if environment.in_gae():
        raise ValueError('Running test-only code in Google App Engine.')

    global _in_memory_sqlite_connection_thread_ids
    _in_memory_sqlite_connection_thread_ids.clear()
    SQLAlchemyEngineManager.teardown_engines()
Exemplo n.º 2
0
def teardown_in_memory_sqlite_databases():
    """Cleans up state after a test started with use_in_memory_sqlite_database() is complete."""
    global _in_memory_sqlite_connection_thread_ids
    _in_memory_sqlite_connection_thread_ids.clear()
    SQLAlchemyEngineManager.teardown_engines()
Exemplo n.º 3
0
 def tearDown(self) -> None:
     SQLAlchemyEngineManager.teardown_engines()