Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline committed Dec 15, 2023
1 parent 8714ca0 commit 575ea15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 262 deletions.
4 changes: 3 additions & 1 deletion tests/test_metabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@
class MockMetabaseClient(MetabaseClient):
def api(self, method: str, path: str, critical: bool = True, **kwargs):
if method == "get":
json_path = FIXTURES_PATH / "mock_api" / f"{path.lstrip('/')}.json"
json_path = Path.joinpath(
FIXTURES_PATH, "mock_api", *f"{path.lstrip('/')}.json".split("/")
)
if json_path.exists():
with open(json_path, encoding="utf-8") as f:
return json.load(f)
Expand Down
261 changes: 0 additions & 261 deletions tests/utils_mb_test_suite.py

This file was deleted.

0 comments on commit 575ea15

Please sign in to comment.