Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Coelho committed Jul 28, 2024
1 parent 0cd8c0c commit 802b33c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FlaskTester.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(","))

Expand Down

0 comments on commit 802b33c

Please sign in to comment.