chore(tests): Remove ineffectual login (#27149)

This commit is contained in:
John Bodley
2024-04-09 09:52:02 -07:00
committed by GitHub
parent ae0f2ce3c1
commit 481a63da55
47 changed files with 857 additions and 802 deletions

View File

@@ -22,23 +22,24 @@ import pytest
from superset import app, db
from superset.common.db_query_status import QueryStatus
from superset.extensions import cache_manager
from tests.integration_tests.base_tests import SupersetTestCase
from tests.integration_tests.constants import ADMIN_USERNAME
from tests.integration_tests.fixtures.birth_names_dashboard import (
load_birth_names_dashboard_with_slices,
load_birth_names_data,
)
from .base_tests import SupersetTestCase
class TestCache(SupersetTestCase):
def setUp(self):
self.login(username="admin")
self.login(ADMIN_USERNAME)
cache_manager.cache.clear()
cache_manager.data_cache.clear()
def tearDown(self):
cache_manager.cache.clear()
cache_manager.data_cache.clear()
super().tearDown()
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
def test_no_data_cache(self):