Skip to content

Commit

Permalink
BI-4163: fix: i18n configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ovsds committed Dec 12, 2023
1 parent 76297d2 commit b8c4f6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
GreenplumTableCoreSourceDefinition,
)
from dl_connector_postgresql.api.connector import PostgreSQLApiBackendDefinition
from dl_connector_postgresql.api.i18n.localizer import CONFIGS as BI_CONNECTOR_POSTGRESQL_CONFIGS


class GreenplumApiTableSourceDefinition(ApiSourceDefinition):
Expand Down Expand Up @@ -54,4 +55,4 @@ class GreenplumApiConnector(ApiConnector):
GreenplumApiTableSourceDefinition,
GreenplumApiSubselectSourceDefinition,
)
translation_configs = frozenset(CONFIGS)
translation_configs = frozenset(CONFIGS) | frozenset(BI_CONNECTOR_POSTGRESQL_CONFIGS)
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b8c4f6d

Please sign in to comment.