hurl/integration/tests_failed/assert_bytearray.py

14 lines
330 B
Python
Raw Normal View History

from app import app
2021-06-17 22:53:31 +03:00
from flask import make_response, request
from io import BytesIO
2021-06-17 22:53:31 +03:00
@app.route("/error-assert-bytearray")
def error_assert_bytearray():
result = BytesIO()
result.write(b"\xff")
2021-06-17 22:53:31 +03:00
data = result.getvalue()
resp = make_response(data)
resp.content_type = "application/octet-stream"
return resp