Skip to content

Commit

Permalink
#43 Fixed the test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed Aug 15, 2024
1 parent 250dd48 commit 9556729
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pytest-slc/test/integration/pytest_slc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
f"download/{SLC_VERSION}/{SLC_NAME}")


def download_container(container_path: Path) -> None:
def download_container(save_dir: Path) -> Path:
response = requests.get(SLC_URL, allow_redirects=True)
response.raise_for_status()
container_path = save_dir / SLC_NAME
container_path.write_bytes(response.content)
return container_path


def assert_udf_running(conn: pyexasol.ExaConnection, language_alias: str):
Expand All @@ -34,9 +36,8 @@ def run(ctx):

def test_upload_slc(upload_slc, backend_aware_database_params, tmp_path):

container_path = tmp_path / 'container'
container_path = download_container(tmp_path)
language_alias = 'PYTHON3_PYTEST_SLC'

download_container(container_path)
upload_slc(container_file_path=container_path, language_alias=language_alias)
assert_udf_running(pyexasol.connect(**backend_aware_database_params), language_alias)

0 comments on commit 9556729

Please sign in to comment.