You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2020/09/16 07:08:40 UTC

[incubator-superset] 01/01: fix: unit tests

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

villebro pushed a commit to branch 0.37
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit c30c3b20d600998ba9f292aaff0541e454bec8fd
Author: Ville Brofeldt <vi...@gmail.com>
AuthorDate: Wed Sep 16 09:50:58 2020 +0300

    fix: unit tests
---
 .../spec/javascripts/explore/components/ColorScheme_spec.jsx            | 2 +-
 tests/charts/api_tests.py                                               | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/spec/javascripts/explore/components/ColorScheme_spec.jsx b/superset-frontend/spec/javascripts/explore/components/ColorScheme_spec.jsx
index b778519..e41fde9 100644
--- a/superset-frontend/spec/javascripts/explore/components/ColorScheme_spec.jsx
+++ b/superset-frontend/spec/javascripts/explore/components/ColorScheme_spec.jsx
@@ -39,6 +39,6 @@ describe('ColorSchemeControl', () => {
   });
 
   it('renders a Creatable', () => {
-    expect(wrapper.find(Select)).toExist();
+    expect(wrapper.find(Select)).toHaveLength(1);
   });
 });
diff --git a/tests/charts/api_tests.py b/tests/charts/api_tests.py
index 51ea4bc..dbd30e0 100644
--- a/tests/charts/api_tests.py
+++ b/tests/charts/api_tests.py
@@ -25,6 +25,7 @@ import prison
 import humanize
 from sqlalchemy.sql import func
 
+from superset.utils.core import get_example_database
 from tests.test_app import app
 from superset.connectors.connector_registry import ConnectorRegistry
 from superset.extensions import db, security_manager