Skip to content

Commit

Permalink
#142 Fixed ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed Oct 11, 2024
1 parent 89bb6e1 commit 52d70a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions tests/ci_tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pytest_plugins = [
"tests.fixtures.language_container_fixture",
"tests.fixtures.setup_database_fixture",
"tests.fixtures.prepare_environment_fixture",
"tests.fixtures.script_deployment_fixture",
"tests.fixtures.prepare_environment_fixture"
]
5 changes: 2 additions & 3 deletions tests/fixtures/prepare_environment_fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def _setup_database(db_conn: pyexasol.ExaConnection, deploy_params: dict[str, An
for model_setup in [reg_model_setup_params, cls_model_setup_params]:
_open_schema(db_conn, model_setup)
DeployCreateStatements.create_and_run(**deploy_params,
use_ssl_cert_validation=False,
schema=model_setup.schema_name)
_create_tables(db_conn, model_setup)
_insert_into_tables(db_conn, model_setup)
Expand Down Expand Up @@ -189,12 +188,12 @@ def aws_bucket_uri(self) -> str:

@pytest.fixture(scope="session")
def prepare_ci_test_environment(pyexasol_connection,
deploy_params,
database_std_params,
aws_s3_bucket,
connection_object_for_aws_credentials,
aws_sagemaker_role,
deployed_slc) -> CITestEnvironment:
_setup_database(pyexasol_connection, deploy_params)
_setup_database(pyexasol_connection, database_std_params)
yield CITestEnvironment(db_conn=pyexasol_connection,
aws_s3_bucket=aws_s3_bucket,
connection_object_for_aws_credentials=connection_object_for_aws_credentials,
Expand Down

0 comments on commit 52d70a0

Please sign in to comment.