diff --git a/sanctions/apps/api/v1/tests/test_views.py b/sanctions/apps/api/v1/tests/test_views.py index bda6ba4..6d3d622 100644 --- a/sanctions/apps/api/v1/tests/test_views.py +++ b/sanctions/apps/api/v1/tests/test_views.py @@ -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 @@ -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(