Skip to content

Commit

Permalink
fix: quality
Browse files Browse the repository at this point in the history
  • Loading branch information
christopappas committed Nov 9, 2023
1 parent 070dfea commit 3c01f5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sanctions/apps/api/v1/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_sdn_check_search_fails_uses_fallback(self, mock_search, mock_fallback):
assert response.status_code == 200
assert response.json()['hit_count'] == 0
assert mock_fallback.is_called()

def test_sdn_check_no_jwt_returns_401(self):
response = self.client.post(self.url)
assert response.status_code == 401
Expand All @@ -59,8 +60,6 @@ def test_sdn_check_non_staff_returns_403(self):
response = self.client.post(self.url)
assert response.status_code == 403

# TODO: add test for test_sdn_check_search_fails_uses_fallback

@mock.patch('sanctions.apps.api.v1.views.checkSDNFallback')
@mock.patch('sanctions.apps.api_client.sdn_client.SDNClient.search')
def test_sdn_check_search_succeeds(
Expand Down

0 comments on commit 3c01f5c

Please sign in to comment.