Initial commit
This commit is contained in:
0
app/client/__init__.py
Normal file
0
app/client/__init__.py
Normal file
16
app/client/requests_test.py
Normal file
16
app/client/requests_test.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from fte import create_app
|
||||
from fte.decorators import accepts
|
||||
|
||||
from fte.test.fixtures import app, client # noqa
|
||||
|
||||
|
||||
def test_reqparse(app):
|
||||
@app.route('/hello_world')
|
||||
def respond():
|
||||
from flask import jsonify
|
||||
return jsonify('Hello, World')
|
||||
with app.test_client() as cl:
|
||||
response = cl.get('/hello_world')
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.json == 'Hello, World'
|
Reference in New Issue
Block a user