From bbd8acd5c535bc26060d8d489889c9d6bf969bd8 Mon Sep 17 00:00:00 2001 From: ovsds Date: Tue, 12 Dec 2023 14:05:34 +0100 Subject: [PATCH] BI-4163: fix: i18n configs --- .../dl_connector_greenplum/api/connector.py | 3 ++- .../dl_connector_greenplum_tests/unit/test_connection_form.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dl_connector_greenplum/dl_connector_greenplum/api/connector.py b/lib/dl_connector_greenplum/dl_connector_greenplum/api/connector.py index 5fbded38e..65514c2c1 100644 --- a/lib/dl_connector_greenplum/dl_connector_greenplum/api/connector.py +++ b/lib/dl_connector_greenplum/dl_connector_greenplum/api/connector.py @@ -20,6 +20,7 @@ GreenplumSubselectCoreSourceDefinition, GreenplumTableCoreSourceDefinition, ) +from dl_connector_postgresql.api.i18n.localizer import CONFIGS as BI_CONNECTOR_POSTGRESQL_CONFIGS from dl_connector_postgresql.formula.constants import DIALECT_NAME_POSTGRESQL @@ -50,4 +51,4 @@ class GreenplumApiConnector(ApiConnector): GreenplumApiSubselectSourceDefinition, ) formula_dialect_name = DIALECT_NAME_POSTGRESQL - translation_configs = frozenset(CONFIGS) + translation_configs = frozenset(CONFIGS) | frozenset(BI_CONNECTOR_POSTGRESQL_CONFIGS) diff --git a/lib/dl_connector_greenplum/dl_connector_greenplum_tests/unit/test_connection_form.py b/lib/dl_connector_greenplum/dl_connector_greenplum_tests/unit/test_connection_form.py index 6ed7a5db4..8c436382a 100644 --- a/lib/dl_connector_greenplum/dl_connector_greenplum_tests/unit/test_connection_form.py +++ b/lib/dl_connector_greenplum/dl_connector_greenplum_tests/unit/test_connection_form.py @@ -3,8 +3,9 @@ from dl_connector_greenplum.api.connection_form.form_config import GreenplumConnectionFormFactory from dl_connector_greenplum.api.i18n.localizer import CONFIGS as BI_CONNECTOR_GREENPLUM_CONFIGS +from dl_connector_postgresql.api.i18n.localizer import CONFIGS as BI_CONNECTOR_POSTGRESQL_CONFIGS class TestGreenplumConnectionForm(ConnectionFormTestBase): CONN_FORM_FACTORY_CLS = GreenplumConnectionFormFactory - TRANSLATION_CONFIGS = BI_API_CONNECTOR_CONFIGS + BI_CONNECTOR_GREENPLUM_CONFIGS + TRANSLATION_CONFIGS = BI_API_CONNECTOR_CONFIGS + BI_CONNECTOR_GREENPLUM_CONFIGS + BI_CONNECTOR_POSTGRESQL_CONFIGS