Beispiel #1
0
def database():
    admin_db_config = load_config(
        'deployment/config/admin_config.toml')['database']
    test_db_config = load_config(
        'deployment/config/test_config.toml')['database']

    setup_db(executor_config=admin_db_config, target_config=test_db_config)
    yield
    teardown_db(executor_config=admin_db_config, target_config=test_db_config)
Beispiel #2
0
def database():
    admin_db_config = load_config(BASE_DIR / 'config' /
                                  'admin_config.toml')['database']
    test_db_config = load_config(BASE_DIR / 'config' /
                                 'test_config.toml')['database']

    setup_db(executor_config=admin_db_config, target_config=test_db_config)
    yield
    teardown_db(executor_config=admin_db_config, target_config=test_db_config)
Beispiel #3
0
def database():
    db_settings = get_config(['-c',
                              TEST_CONFIG.as_posix()])['database_settings']
    setup_db(db_settings)
    yield
    teardown_db(db_settings)