diff --git a/tests/test_request_stream.py b/tests/test_request_stream.py index fdfffb77..4ca4e44e 100644 --- a/tests/test_request_stream.py +++ b/tests/test_request_stream.py @@ -185,6 +185,11 @@ def test_request_stream_handle_exception(): assert response.status == 404 assert response.text == 'Error: Requested URL /in_valid_post not found' + # 405 + request, response = app.test_client.get('/post/random_id', data=data) + assert response.status == 405 + assert response.text == 'Error: Method GET not allowed for URL /post/random_id' + def test_request_stream_blueprint(): '''for self.is_request_stream = True'''