Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzbrand committed Jul 12, 2023
1 parent 159f029 commit 81e253f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion aaq/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_get_first_page_view_gibberish_input(self):
}

@responses.activate
def test_get_first_page_view_non_text(self):
def test_get_first_page_view_non_text_input(self):
"""
Check that we get an error message if a blank question is submitted
This happens when a voicenote or document is sent, or if an image is
Expand Down
1 change: 0 additions & 1 deletion aaq/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
@api_view(("POST",))
@renderer_classes((JSONRenderer,))
def get_first_page(request, *args, **kwargs):
print(request.data)
if request.data == {"question": ""}:
json_msg = {
"message": "Non-text Input Detected",
Expand Down

0 comments on commit 81e253f

Please sign in to comment.