Skip to content

Commit 98ea55a

Browse files
author
Noah
committed
postman tests
1 parent ff7c561 commit 98ea55a

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

swagger_server/controllers/default_controller.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ def delete_student(student_id): # noqa: E501
2828
2929
:rtype: object
3030
"""
31-
if connexion.request.is_json:
32-
return delete(student_id)
33-
return 500, 'error'
31+
return delete(student_id)
3432

3533
def get_student_by_id(student_id): # noqa: E501
3634
"""gets student
@@ -42,7 +40,6 @@ def get_student_by_id(student_id): # noqa: E501
4240
4341
:rtype: Student
4442
"""
45-
if connexion.request.is_json:
46-
return get_by_id(student_id)
47-
return 500, 'error'
43+
return get_by_id(student_id)
44+
4845

0 commit comments

Comments
 (0)