mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix(OAuth2): Update connection should not fail if connection is missing OAuth2 token (#33100)
This commit is contained in:
@@ -64,6 +64,8 @@ def database_without_catalog(mocker: MockerFixture) -> MagicMock:
|
||||
database.db_engine_spec.__name__ = "test_engine"
|
||||
database.db_engine_spec.supports_catalog = False
|
||||
database.get_all_schema_names.return_value = ["schema1", "schema2"]
|
||||
database.is_oauth2_enabled.return_value = False
|
||||
database.db_engine_spec.needs_oauth2.return_value = False
|
||||
|
||||
return database
|
||||
|
||||
|
||||
Reference in New Issue
Block a user