From 63096e7d4b3e4dfe11d5c4d033d9a99ebc42c30d Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Sun, 12 Dec 2021 10:16:33 -0800 Subject: [PATCH] Add tests --- superset/db_engine_specs/postgres.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/superset/db_engine_specs/postgres.py b/superset/db_engine_specs/postgres.py index c2951c394d01c..73da187dda6c9 100644 --- a/superset/db_engine_specs/postgres.py +++ b/superset/db_engine_specs/postgres.py @@ -195,8 +195,16 @@ class PostgresEngineSpec(PostgresBaseEngineSpec, BasicParametersMixin): lambda match: ARRAY(int(match[2])) if match[2] else String(), utils.GenericDataType.STRING, ), - (re.compile(r"^json.*", re.IGNORECASE), JSON(), utils.GenericDataType.STRING,), - (re.compile(r"^enum.*", re.IGNORECASE), ENUM(), utils.GenericDataType.STRING,), + ( + re.compile(r"^json.*", re.IGNORECASE), + JSON(), + utils.GenericDataType.STRING, + ), + ( + re.compile(r"^enum.*", re.IGNORECASE), + ENUM(), + utils.GenericDataType.STRING, + ), ) @classmethod