Skip to content

Commit

Permalink
ignore mypy recursivedict error
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjqliu committed Feb 12, 2025
1 parent 539b1d1 commit 7e0b29f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/utils/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def test_config_lookup_order(
"""
Test that the configuration lookup prioritizes PYICEBERG_HOME, then home (~), then cwd.
"""

def create_config_file(path: str, uri: Optional[str]) -> None:
if uri:
config_file_path = os.path.join(path, ".pyiceberg.yaml")
Expand All @@ -172,5 +173,5 @@ def create_config_file(path: str, uri: Optional[str]) -> None:
# Perform the lookup and validate the result
result = Config()._from_configuration_files()
assert (
result["catalog"]["default"]["uri"] if result else None
result["catalog"]["default"]["uri"] if result else None # type: ignore
) == expected_result, f"Unexpected configuration result. Expected: {expected_result}, Actual: {result}"

0 comments on commit 7e0b29f

Please sign in to comment.