hurl/integration/tests_ok/querystring_params.py

21 lines
582 B
Python
Raw Normal View History

from app import app
2020-08-27 10:07:46 +03:00
from flask import request
2020-08-27 10:07:46 +03:00
@app.route("/querystring-params")
def querystring_params():
assert request.args.get("param1") == "value1"
assert request.args.get("param2") == ""
assert request.args.get("param3") == "a=b"
assert request.args.get("param4") == "1,2,3"
2022-12-01 15:28:08 +03:00
assert request.args.get("$top") == "5"
return ""
2020-08-27 10:07:46 +03:00
@app.route("/querystring-params-encoded")
def querystring_params_encoded():
assert request.args.get("value1") == "/"
assert request.args.get("value2") == "/"
assert request.args.get("value3") == "/"
return ""