Skip to content

Commit

Permalink
✅ fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed Mar 1, 2024
1 parent 5766b30 commit 9cfccac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/tests/test_api/test_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ def test_explorer_no_path() -> None:
assert "files" in data
assert "path" in data
assert "parent" in data
assert data["path"].endswith("beastiary/backend")
assert data["parent"].endswith("beastiary")
assert data["path"].endswith(".")
assert data["parent"].endswith(".")


def test_explorer_with_path() -> None:
response = client.get("/api/explorer/?path=/", headers=headers)
response = client.get("/api/explorer/?path=beastiary", headers=headers)
assert response.status_code == 200
data = response.json()
assert "files" in data
assert "path" in data
assert "parent" in data
assert data["path"] == "/"
assert data["parent"] == "/"
assert data["path"] == "beastiary"
assert data["parent"] == "."

0 comments on commit 9cfccac

Please sign in to comment.