def tearDown(self) -> None:
     postgres_conn_manager: PostgresConnManager = PostgresConnManager()
     postgres_conn_manager.query(f"""
         TRUNCATE users.users CASCADE;
         TRUNCATE users.users_pool CASCADE;
         TRUNCATE pool.pools CASCADE;
     """)
예제 #2
0
 def __init__(self, **kwargs):
     """ Constructor for UserStatusData
     Args:
         **kwargs:       Optional dependencies
             postgres_conn_manager (PostgresConnManager)
     """
     self.__postgres_conn_manager: PostgresConnManager = kwargs.get(
         "postgres_conn_manager") or PostgresConnManager()
예제 #3
0
 def __init__(self, **kwargs):
     """ Constructor for MigrationData
     Args:
         **kwargs:
             postgres_conn_manager (PostgresConnManager)
     """
     self.__postgres_conn_manager: PostgresConnManager = kwargs.get(
         "postgres_conn_manager") or PostgresConnManager()