mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-12 15:36:01 +03:00
18 lines
367 B
Python
18 lines
367 B
Python
from flask import request
|
|
from tests import app
|
|
import json
|
|
|
|
|
|
@app.route('/variables', methods=['POST'])
|
|
def variables():
|
|
assert request.headers['Content-Type'] == 'application/json'
|
|
s = request.data.decode("utf-8")
|
|
data = json.loads(s)
|
|
assert data['name'] == 'Jennifer'
|
|
assert data['age'] == 30
|
|
assert data['female'] == True
|
|
return ''
|
|
|
|
|
|
|