mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
chore(GAQ): Remove GLOBAL_ASYNC_QUERIES_REDIS_CONFIG (#30284)
Co-authored-by: Sivarajan Narayanan <narayanan_sivarajan@apple.com>
This commit is contained in:
@@ -18,7 +18,6 @@ from typing import Any, Optional, Type
|
||||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
import redis
|
||||
|
||||
from superset.async_events.cache_backend import (
|
||||
RedisCacheBackend,
|
||||
@@ -129,10 +128,6 @@ class TestAsyncEventApi(SupersetTestCase):
|
||||
RedisSentinelCacheBackend, self._test_events_logic
|
||||
)
|
||||
|
||||
@mock.patch("uuid.uuid4", return_value=UUID)
|
||||
def test_events_redis(self, mock_uuid4):
|
||||
self.run_test_with_cache_backend(redis.Redis, self._test_events_logic)
|
||||
|
||||
def test_events_no_login(self):
|
||||
app._got_first_request = False
|
||||
async_query_manager.init_app(app)
|
||||
|
||||
@@ -20,7 +20,6 @@ from unittest import mock
|
||||
from uuid import uuid4
|
||||
|
||||
import pytest
|
||||
import redis
|
||||
from celery.exceptions import SoftTimeLimitExceeded
|
||||
from parameterized import parameterized
|
||||
|
||||
@@ -52,7 +51,6 @@ class TestAsyncQueries(SupersetTestCase):
|
||||
[
|
||||
("RedisCacheBackend", mock.Mock(spec=RedisCacheBackend)),
|
||||
("RedisSentinelCacheBackend", mock.Mock(spec=RedisSentinelCacheBackend)),
|
||||
("redis.Redis", mock.Mock(spec=redis.Redis)),
|
||||
]
|
||||
)
|
||||
@mock.patch("superset.tasks.async_queries.set_form_data")
|
||||
@@ -88,7 +86,6 @@ class TestAsyncQueries(SupersetTestCase):
|
||||
[
|
||||
("RedisCacheBackend", mock.Mock(spec=RedisCacheBackend)),
|
||||
("RedisSentinelCacheBackend", mock.Mock(spec=RedisSentinelCacheBackend)),
|
||||
("redis.Redis", mock.Mock(spec=redis.Redis)),
|
||||
]
|
||||
)
|
||||
@mock.patch.object(
|
||||
@@ -125,7 +122,6 @@ class TestAsyncQueries(SupersetTestCase):
|
||||
[
|
||||
("RedisCacheBackend", mock.Mock(spec=RedisCacheBackend)),
|
||||
("RedisSentinelCacheBackend", mock.Mock(spec=RedisSentinelCacheBackend)),
|
||||
("redis.Redis", mock.Mock(spec=redis.Redis)),
|
||||
]
|
||||
)
|
||||
@mock.patch.object(ChartDataCommand, "run")
|
||||
@@ -163,7 +159,6 @@ class TestAsyncQueries(SupersetTestCase):
|
||||
[
|
||||
("RedisCacheBackend", mock.Mock(spec=RedisCacheBackend)),
|
||||
("RedisSentinelCacheBackend", mock.Mock(spec=RedisSentinelCacheBackend)),
|
||||
("redis.Redis", mock.Mock(spec=redis.Redis)),
|
||||
]
|
||||
)
|
||||
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
|
||||
@@ -209,7 +204,6 @@ class TestAsyncQueries(SupersetTestCase):
|
||||
[
|
||||
("RedisCacheBackend", mock.Mock(spec=RedisCacheBackend)),
|
||||
("RedisSentinelCacheBackend", mock.Mock(spec=RedisSentinelCacheBackend)),
|
||||
("redis.Redis", mock.Mock(spec=redis.Redis)),
|
||||
]
|
||||
)
|
||||
@mock.patch.object(async_query_manager, "update_job")
|
||||
@@ -245,7 +239,6 @@ class TestAsyncQueries(SupersetTestCase):
|
||||
[
|
||||
("RedisCacheBackend", mock.Mock(spec=RedisCacheBackend)),
|
||||
("RedisSentinelCacheBackend", mock.Mock(spec=RedisSentinelCacheBackend)),
|
||||
("redis.Redis", mock.Mock(spec=redis.Redis)),
|
||||
]
|
||||
)
|
||||
@mock.patch.object(ChartDataCommand, "run")
|
||||
|
||||
Reference in New Issue
Block a user