Skip to content

Commit

Permalink
Applied unicode fixture to charts api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kkucharc committed Oct 7, 2020
1 parent 7c07907 commit 8f5ec97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/charts/api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8f5ec97

Please sign in to comment.