Skip to content

Commit

Permalink
Fix bucket test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
arneso-ssb committed Nov 21, 2024
1 parent 10b1c9f commit 1584ccb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tests/test_file_abstraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def test_read_json_pathlib() -> None:

@pytest.mark.skipif(not is_dapla(), reason="Bucket tests only runs on Dapla")
def test_read_json_bucket() -> None:
jsonfile_bucket = (
f"{settings.product_root_dir}/temp/versiontests/tc2/sources_v1.json"
)
root_dir = settings.product_root_dir.removesuffix(f"/{settings.short_name}")
jsonfile_bucket = f"{root_dir}/temp/testcase/versiontest/tc2/sources_v1.json"
result = read_json_file(jsonfile_bucket)
assert len(result) == 1
3 changes: 2 additions & 1 deletion tests/test_versions_get_latest_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from functions.versions import get_latest_file_version


PREFIX = f"{settings.product_root_dir}/temp/versiontests"
root_dir = settings.product_root_dir.removesuffix(f"/{settings.short_name}")
PREFIX = f"{root_dir}/temp/testcase/versiontest"


@pytest.mark.skipif(
Expand Down

0 comments on commit 1584ccb

Please sign in to comment.