Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lily Kuang committed Apr 12, 2022
1 parent 2ebb85c commit 5ac9f57
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration_tests/embedded/api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.
# isort:skip_file
"""Tests for security api methods"""
import json
from unittest import mock

import pytest

Expand All @@ -34,6 +34,10 @@ class TestEmbeddedDashboardApi(SupersetTestCase):
resource_name = "embedded_dashboard"

@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
@mock.patch.dict(
"superset.extensions.feature_flag_manager._feature_flags",
EMBEDDED_SUPERSET=True,
)
def test_get_embedded_dashboard(self):
self.login("admin")
self.dash = db.session.query(Dashboard).filter_by(slug="births").first()
Expand Down

0 comments on commit 5ac9f57

Please sign in to comment.