Skip to content

Commit

Permalink
Fix AWS default region test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
kounelisagis committed Oct 11, 2024
1 parent c6ce3e5 commit 3e5eed3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tiledb/tests/test_fixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,17 @@ def get_config_with_env(env, key):
)
return sp_output.decode("UTF-8").strip()

assert get_config_with_env({}, "vfs.s3.region") == "us-east-1"
assert get_config_with_env({"AWS_DEFAULT_REGION": ""}, "vfs.s3.region") == ""
assert (
get_config_with_env({"AWS_DEFAULT_REGION": "us-east-1"}, "vfs.s3.region")
== "us-east-1"
)

assert get_config_with_env({"AWS_REGION": ""}, "vfs.s3.region") == ""
assert (
get_config_with_env({"AWS_REGION": "us-east-1"}, "vfs.s3.region")
== "us-east-1"
)

@pytest.mark.skipif(not has_pandas(), reason="pandas>=1.0,<3.0 not installed")
@pytest.mark.parametrize("is_sparse", [True, False])
Expand Down

0 comments on commit 3e5eed3

Please sign in to comment.