hurl/integration/tests/basic_authentication_per_request.py

9 lines
245 B
Python
Raw Normal View History

2020-11-10 09:35:27 +03:00
from tests import app
from flask import request
@app.route("/basic-authentication-per-request")
def basic_authentication_per_request():
assert request.headers["Authorization"] == "Basic Ym9iOnNlY3JldA=="
return "You are authenticated"