Skip to content

Commit

Permalink
Add test for empty workspace requests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodwyer committed May 9, 2024
1 parent c552153 commit a256547
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/views/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,16 @@ def test_request_withdraw_not_author(airlock_client):
assert persisted_request.status == RequestStatus.PENDING


def test_empty_requests_for_workspace(airlock_client):
airlock_client.login(workspaces=["test1"])

response = airlock_client.get("/requests/workspace/test1")

response.render()
assert response.status_code == 200
assert "There are no requests in this workspace" in response.rendered_content


def test_requests_for_workspace(airlock_client):
airlock_client.login(workspaces=["test1"])
author1 = factories.create_user("author1", ["test1"], False)
Expand Down

0 comments on commit a256547

Please sign in to comment.