hurl/integration/tests_ok/form_params.py

14 lines
388 B
Python
Raw Normal View History

from app import app
2020-08-27 10:07:46 +03:00
from flask import request
@app.route("/form-params", methods=["POST"])
def form_params():
assert request.form["param1"] == "value1"
assert request.form["param2"] == ""
assert request.form["param3"] == "a=b"
assert request.form["param4"] == "a%3db"
assert request.form["values[0]"] == "0"
assert request.form["values[1]"] == "1"
return ""