Skip to content

Commit

Permalink
Merge 3bdb043 into 8a901a5
Browse files Browse the repository at this point in the history
  • Loading branch information
mldzs committed Mar 5, 2021
2 parents 8a901a5 + 3bdb043 commit 5a325e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion bothub/api/v2/nlp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class RepositoryAuthorizationInfoViewSet(mixins.RetrieveModelMixin, GenericViewS
queryset = RepositoryAuthorization.objects
serializer_class = NLPSerializer
permission_classes = [AllowAny]
authentication_classes = [NLPAuthentication]
authentication_classes = []

def retrieve(self, request, *args, **kwargs):
check_auth(request)
Expand Down
4 changes: 0 additions & 4 deletions bothub/api/v2/tests/test_nlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,6 @@ def test_ok(self):
response, content_data = self.request(str(self.repository_authorization.uuid))
self.assertEqual(response.status_code, status.HTTP_200_OK)

def test_not_auth(self):
response, content_data = self.request(str(uuid.uuid4()))
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)

def test_list_all_repository_intents(self):
response, content_data = self.request(str(self.repository_authorization.uuid))
self.assertEqual(len(response.data.get("intents")), 1)
Expand Down

0 comments on commit 5a325e4

Please sign in to comment.