bito-code-review[bot] commented on code in PR #39946:
URL: https://github.com/apache/superset/pull/39946#discussion_r3753346653
##########
tests/integration_tests/base_tests.py:
##########
@@ -295,6 +295,16 @@ def get_or_create(self, cls, criteria, **kwargs):
def login(self, username, password=DEFAULT_PASSWORD):
return login(self.client, username, password)
+ def get_bearer_auth_header(
+ self, username=ADMIN_USERNAME, password=DEFAULT_PASSWORD
+ ):
+ response = self.client.post(
+ "/api/v1/security/login",
+ json={"username": username, "password": password, "provider":
"db"},
+ )
+ assert response.status_code == 200
+ return {"Authorization": f"Bearer {response.json['access_token']}"}
Review Comment:
<!-- Bito Reply -->
The suggestion is no longer applicable as the code has been updated to
include the necessary docstring and type hints. You can safely resolve this
thread.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]