Skip to content

Commit

Permalink
fix: Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa committed Jul 15, 2024
1 parent 0d4b0ca commit 2a9bcc4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions api/tests/unit/integrations/github/test_unit_github_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ def test_get_github_configuration(
assert response.status_code == status.HTTP_200_OK


def test_non_admin_user_get_github_configuration(
staff_client: APIClient,
organisation: Organisation,
) -> None:
# Given
url = reverse(
"api-v1:organisations:integrations-github-list",
kwargs={"organisation_pk": organisation.id},
)
# When
response = staff_client.get(url)
# Then
assert response.status_code == status.HTTP_200_OK


def test_create_github_configuration(
admin_client_new: APIClient,
organisation: Organisation,
Expand Down

0 comments on commit 2a9bcc4

Please sign in to comment.