mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-18 06:31:11 +00:00
MINOR: fix qlikcloud test connection (#17459)
* fix: qlikcloud test connection * patch test_connection for qlik cloud unit tests
This commit is contained in:
parent
ddd8c41864
commit
31c2ec8c57
@ -145,7 +145,7 @@ class QlikCloudClient:
|
|||||||
resp_apps = self.client.get("/v1/items?resourceType=app")
|
resp_apps = self.client.get("/v1/items?resourceType=app")
|
||||||
if resp_apps:
|
if resp_apps:
|
||||||
resp = QlikAppResponse(**resp_apps)
|
resp = QlikAppResponse(**resp_apps)
|
||||||
yield from resp.apps
|
return list(resp.apps)
|
||||||
|
|
||||||
def get_dashboard_details(self, dashboard_id: str) -> Optional[QlikApp]:
|
def get_dashboard_details(self, dashboard_id: str) -> Optional[QlikApp]:
|
||||||
"""
|
"""
|
||||||
|
@ -157,7 +157,11 @@ class QlikCloudUnitTest(TestCase):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, methodName) -> None:
|
def __init__(self, methodName) -> None:
|
||||||
with patch.object(QlikCloudClient, "get_dashboards_list", return_value=None):
|
with patch.object(
|
||||||
|
QlikCloudClient, "get_dashboards_list", return_value=None
|
||||||
|
), patch.object(
|
||||||
|
QlikCloudClient, "get_dashboards_list_test_conn", return_value=None
|
||||||
|
):
|
||||||
super().__init__(methodName)
|
super().__init__(methodName)
|
||||||
# test_connection.return_value = False
|
# test_connection.return_value = False
|
||||||
self.config = OpenMetadataWorkflowConfig.model_validate(
|
self.config = OpenMetadataWorkflowConfig.model_validate(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user