add unit tests
This commit is contained in:
parent
cf30ed745c
commit
6a80bdafa6
|
@ -185,6 +185,11 @@ def test_request_stream_handle_exception():
|
||||||
assert response.status == 404
|
assert response.status == 404
|
||||||
assert response.text == 'Error: Requested URL /in_valid_post not found'
|
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():
|
def test_request_stream_blueprint():
|
||||||
'''for self.is_request_stream = True'''
|
'''for self.is_request_stream = True'''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user