You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2021/12/22 17:29:31 UTC

[superset] 03/04: Add tests

This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch ch24621c
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 2d033dc502d2f0064408ee3fc537588b0617551a
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Sun Dec 12 10:16:33 2021 -0800

    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 c2951c3..73da187 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