add unit tests
This commit is contained in:
parent
071bc23411
commit
e3d8f12bb6
|
@ -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'''
|
||||
|
|
Loading…
Reference in New Issue
Block a user