sha174n commented on code in PR #41425:
URL: https://github.com/apache/superset/pull/41425#discussion_r3477674810
##########
tests/integration_tests/core_tests.py:
##########
@@ -887,6 +887,22 @@ def test_explore_redirect(self, mock_command: mock.Mock):
)
assert rv.headers["Location"] ==
f"/explore/?form_data_key={random_key}"
+ @pytest.mark.usefixtures("load_energy_table_with_slice")
+ @mock.patch("superset.security.SupersetSecurityManager.raise_for_access")
+ def test_explore_view_checks_datasource_access(self,
mock_raise_for_access):
Review Comment:
Added full type annotations (mock.Mock arg and -> None return) in 8dd1f7b018.
--
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]