mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
chore: upgrade black (#19410)
This commit is contained in:
@@ -41,7 +41,8 @@ CHART_DATA_URI = "api/v1/chart/data"
|
||||
|
||||
|
||||
@mock.patch.dict(
|
||||
"superset.extensions.feature_flag_manager._feature_flags", DASHBOARD_RBAC=True,
|
||||
"superset.extensions.feature_flag_manager._feature_flags",
|
||||
DASHBOARD_RBAC=True,
|
||||
)
|
||||
class TestDashboardRoleBasedSecurity(BaseTestDashboardSecurity):
|
||||
def test_get_dashboard_view__admin_can_access(self):
|
||||
@@ -293,7 +294,10 @@ class TestDashboardRoleBasedSecurity(BaseTestDashboardSecurity):
|
||||
|
||||
# assert
|
||||
self.assert_dashboards_api_response(
|
||||
response, len(published_dashboards), published_dashboards, draft_dashboards,
|
||||
response,
|
||||
len(published_dashboards),
|
||||
published_dashboards,
|
||||
draft_dashboards,
|
||||
)
|
||||
|
||||
# post
|
||||
@@ -337,7 +341,10 @@ class TestDashboardRoleBasedSecurity(BaseTestDashboardSecurity):
|
||||
|
||||
# assert
|
||||
self.assert_dashboards_api_response(
|
||||
response, len(published_dashboards), published_dashboards, draft_dashboards,
|
||||
response,
|
||||
len(published_dashboards),
|
||||
published_dashboards,
|
||||
draft_dashboards,
|
||||
)
|
||||
|
||||
# post
|
||||
|
||||
Reference in New Issue
Block a user