mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: upgrade black (#19410)
This commit is contained in:
committed by
Ville Brofeldt
parent
1edd5f1343
commit
a70f4dc52f
@@ -27,7 +27,8 @@ class ProgrammingError(Exception):
|
||||
|
||||
|
||||
def test_validate_parameters_simple(
|
||||
mocker: MockFixture, app_context: AppContext,
|
||||
mocker: MockFixture,
|
||||
app_context: AppContext,
|
||||
) -> None:
|
||||
from superset.db_engine_specs.gsheets import (
|
||||
GSheetsEngineSpec,
|
||||
@@ -43,7 +44,8 @@ def test_validate_parameters_simple(
|
||||
|
||||
|
||||
def test_validate_parameters_catalog(
|
||||
mocker: MockFixture, app_context: AppContext,
|
||||
mocker: MockFixture,
|
||||
app_context: AppContext,
|
||||
) -> None:
|
||||
from superset.db_engine_specs.gsheets import (
|
||||
GSheetsEngineSpec,
|
||||
@@ -78,7 +80,10 @@ def test_validate_parameters_catalog(
|
||||
error_type=SupersetErrorType.TABLE_DOES_NOT_EXIST_ERROR,
|
||||
level=ErrorLevel.WARNING,
|
||||
extra={
|
||||
"catalog": {"idx": 0, "url": True,},
|
||||
"catalog": {
|
||||
"idx": 0,
|
||||
"url": True,
|
||||
},
|
||||
"issue_codes": [
|
||||
{
|
||||
"code": 1003,
|
||||
@@ -96,7 +101,10 @@ def test_validate_parameters_catalog(
|
||||
error_type=SupersetErrorType.TABLE_DOES_NOT_EXIST_ERROR,
|
||||
level=ErrorLevel.WARNING,
|
||||
extra={
|
||||
"catalog": {"idx": 2, "url": True,},
|
||||
"catalog": {
|
||||
"idx": 2,
|
||||
"url": True,
|
||||
},
|
||||
"issue_codes": [
|
||||
{
|
||||
"code": 1003,
|
||||
@@ -112,12 +120,15 @@ def test_validate_parameters_catalog(
|
||||
]
|
||||
|
||||
create_engine.assert_called_with(
|
||||
"gsheets://", service_account_info={}, subject="admin@example.com",
|
||||
"gsheets://",
|
||||
service_account_info={},
|
||||
subject="admin@example.com",
|
||||
)
|
||||
|
||||
|
||||
def test_validate_parameters_catalog_and_credentials(
|
||||
mocker: MockFixture, app_context: AppContext,
|
||||
mocker: MockFixture,
|
||||
app_context: AppContext,
|
||||
) -> None:
|
||||
from superset.db_engine_specs.gsheets import (
|
||||
GSheetsEngineSpec,
|
||||
@@ -151,7 +162,10 @@ def test_validate_parameters_catalog_and_credentials(
|
||||
error_type=SupersetErrorType.TABLE_DOES_NOT_EXIST_ERROR,
|
||||
level=ErrorLevel.WARNING,
|
||||
extra={
|
||||
"catalog": {"idx": 2, "url": True,},
|
||||
"catalog": {
|
||||
"idx": 2,
|
||||
"url": True,
|
||||
},
|
||||
"issue_codes": [
|
||||
{
|
||||
"code": 1003,
|
||||
@@ -167,5 +181,7 @@ def test_validate_parameters_catalog_and_credentials(
|
||||
]
|
||||
|
||||
create_engine.assert_called_with(
|
||||
"gsheets://", service_account_info={}, subject="admin@example.com",
|
||||
"gsheets://",
|
||||
service_account_info={},
|
||||
subject="admin@example.com",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user