Skip to content

Commit 802b33c

Browse files
author
Fabien Coelho
committed
more comments
1 parent 0cd8c0c commit 802b33c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

FlaskTester.py

+2
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ def request(self, method: str, path: str, status: int|None = None, content: str|
388388
else:
389389
data_param[name] = json.dumps(dataclasses.asdict(val))
390390

391+
# now set authentication headers and do the query
391392
self._auth.setAuth(login, kwargs, cookies, auth=auth)
392393
res = self._request(method, path, cookies, **kwargs) # type: ignore
393394

@@ -530,6 +531,7 @@ def _ft_authenticator():
530531
auth = Authenticator(allow, user=user, pwd=pwd, login=login, bearer=bearer,
531532
header=header, cookie=cookie, tparam=tparam, ptype=ptype)
532533

534+
# possibly load credentials from the environment
533535
if "FLASK_TESTER_AUTH" in os.environ:
534536
auth.setPasses(os.environ["FLASK_TESTER_AUTH"].split(","))
535537

0 commit comments

Comments
 (0)