From 802b33c6fc7ebb27032e36870506b91d75baff6b Mon Sep 17 00:00:00 2001 From: Fabien Coelho Date: Sun, 28 Jul 2024 18:24:04 +0200 Subject: [PATCH] more comments --- FlaskTester.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FlaskTester.py b/FlaskTester.py index d86a854..1ff56d6 100755 --- a/FlaskTester.py +++ b/FlaskTester.py @@ -388,6 +388,7 @@ def request(self, method: str, path: str, status: int|None = None, content: str| else: data_param[name] = json.dumps(dataclasses.asdict(val)) + # now set authentication headers and do the query self._auth.setAuth(login, kwargs, cookies, auth=auth) res = self._request(method, path, cookies, **kwargs) # type: ignore @@ -530,6 +531,7 @@ def _ft_authenticator(): auth = Authenticator(allow, user=user, pwd=pwd, login=login, bearer=bearer, header=header, cookie=cookie, tparam=tparam, ptype=ptype) + # possibly load credentials from the environment if "FLASK_TESTER_AUTH" in os.environ: auth.setPasses(os.environ["FLASK_TESTER_AUTH"].split(","))