Skip to content

Commit

Permalink
Return name of bucketfs connection in fixture database_with_slc
Browse files Browse the repository at this point in the history
  • Loading branch information
ckunki committed Sep 24, 2024
1 parent 67e50b9 commit 6501ac1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
BUCKETFS_CONNECTION_NAME = "TEST_AAF_BFS_CONN"
SCHEMA_NAME = "TEST_INTEGRATION"


@pytest.fixture(scope="session")
def pyexasol_connection(backend_aware_database_params) -> pyexasol.ExaConnection:
return pyexasol.connect(**backend_aware_database_params)
Expand Down Expand Up @@ -61,10 +62,10 @@ def database_with_slc(
) -> Tuple[str|None, str]:
schema = _create_schema(pyexasol_connection)
_deploy_scripts(pyexasol_connection)
bfs_conn = bucketfs_connection_factory(BUCKETFS_CONNECTION_NAME, "my-folder")
bucketfs_connection_factory(BUCKETFS_CONNECTION_NAME, "my-folder")
# bfs_conn = _create_bucketfs_connection(
# use_onprem,
# pyexasol_connection,
# backend_aware_bucketfs_params,
# )
return bfs_conn, schema
return BUCKETFS_CONNECTION_NAME, schema
15 changes: 0 additions & 15 deletions tests/integration_tests/with_db/test_query_loop_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ def test_query_loop_integration_with_one_iteration_with_not_released_child_query
# into its own session, for easier retrieval
conn = pyexasol.connect(**backend_aware_database_params)

# conn = pyexasol.connect(
# dsn=db_params.address(),
# user=db_params.user,
# password=db_params.password)

# execute query loop
bucketfs_connection_name, schema_name = database_with_slc
args = json.dumps(
Expand Down Expand Up @@ -97,11 +92,6 @@ def test_query_loop_integration_with_one_iteration_with_not_released_temporary_o
# into its own session, for easier retrieval of the audit log
conn = pyexasol.connect(**backend_aware_database_params)

# conn = pyexasol.connect(
# dsn=db_params.address(),
# user=db_params.user,
# password=db_params.password)

# execute query loop
bucketfs_connection_name, schema_name = database_with_slc
args = json.dumps(
Expand Down Expand Up @@ -149,11 +139,6 @@ def test_query_loop_integration_with_two_iteration(
# into its own session, for easier retrieval of the audit log
conn = pyexasol.connect(**backend_aware_database_params)

# conn = pyexasol.connect(
# dsn=db_params.address(),
# user=db_params.user,
# password=db_params.password)

# execute query loop
bucketfs_connection_name, schema_name = database_with_slc
args = json.dumps(
Expand Down

0 comments on commit 6501ac1

Please sign in to comment.