From 8f5ec978779f9b33e10e481a7043bd5d150ce895 Mon Sep 17 00:00:00 2001 From: Kasia Kucharczyk Date: Wed, 7 Oct 2020 10:33:40 +0200 Subject: [PATCH] Applied unicode fixture to charts api tests --- tests/charts/api_tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/charts/api_tests.py b/tests/charts/api_tests.py index 9e6dca7805043..35fe93942a8cb 100644 --- a/tests/charts/api_tests.py +++ b/tests/charts/api_tests.py @@ -28,6 +28,7 @@ from sqlalchemy.sql import func from superset.utils.core import get_example_database +from tests.fixtures.unicode_dashboard import load_unicode_dashboard_with_slice from tests.test_app import app from superset.connectors.connector_registry import ConnectorRegistry from superset.extensions import db, security_manager @@ -567,6 +568,7 @@ def test_get_chart_no_data_access(self): rv = self.client.get(uri) self.assertEqual(rv.status_code, 404) + @pytest.mark.usefixtures("load_unicode_dashboard_with_slice") def test_get_charts(self): """ Chart API: Test get charts @@ -733,6 +735,7 @@ def test_get_charts_favorite_filter(self): assert rv.status_code == 200 assert len(expected_models) == data["count"] + @pytest.mark.usefixtures("load_unicode_dashboard_with_slice") def test_get_charts_page(self): """ Chart API: Test get charts filter