hurl/integration/tests_ok/hello.py
Fabrice Reix 62243800e6
Delete Rust integ Test for libcurl/HTTP module
These tests should be covered in the .hurl integ tests.
2023-06-08 09:03:57 +00:00

13 lines
323 B
Python

from app import app
from flask import request
@app.route("/hello")
def hello():
assert len(request.headers) == 3
assert request.headers["Host"] == "localhost:8000"
assert request.headers["Accept"] == "*/*"
assert "User-Agent" in request.headers
assert len(request.data) == 0
return "Hello World!"