Initial commit

This commit is contained in:
Alan Pryor
2019-05-18 11:22:18 -04:00
commit 2677021a05
9 changed files with 236 additions and 0 deletions

0
app/client/__init__.py Normal file
View File

View 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'