This is an automated email from the ASF dual-hosted git repository.
vavila pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 101d3fa78d chore: Re-enable asnyc event API tests (#32062)
101d3fa78d is described below
commit 101d3fa78d39e203ceedb550b841bc60e95c1cfb
Author: Vitor Avila <[email protected]>
AuthorDate: Fri Jan 31 13:54:05 2025 -0300
chore: Re-enable asnyc event API tests (#32062)
---
tests/integration_tests/async_events/api_tests.py | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/tests/integration_tests/async_events/api_tests.py
b/tests/integration_tests/async_events/api_tests.py
index 02852ab6fb..44580c35bc 100644
--- a/tests/integration_tests/async_events/api_tests.py
+++ b/tests/integration_tests/async_events/api_tests.py
@@ -17,20 +17,17 @@
from typing import Any, Optional, Type
from unittest import mock
-import pytest
-
from superset.async_events.cache_backend import (
RedisCacheBackend,
RedisSentinelCacheBackend,
)
-from superset.extensions import async_query_manager
+from superset.extensions import async_query_manager,
async_query_manager_factory
from superset.utils import json
from tests.integration_tests.base_tests import SupersetTestCase
from tests.integration_tests.constants import ADMIN_USERNAME
from tests.integration_tests.test_app import app
[email protected](reason="Needs to investigate this test", allow_module_level=True)
class TestAsyncEventApi(SupersetTestCase):
UUID = "943c920-32a5-412a-977d-b8e47d36f5a4"
@@ -41,7 +38,7 @@ class TestAsyncEventApi(SupersetTestCase):
def run_test_with_cache_backend(self, cache_backend_cls: Type[Any],
test_func):
app._got_first_request = False
- async_query_manager.init_app(app)
+ async_query_manager_factory.init_app(app)
# Create a mock cache backend instance
mock_cache = mock.Mock(spec=cache_backend_cls)
@@ -130,7 +127,7 @@ class TestAsyncEventApi(SupersetTestCase):
def test_events_no_login(self):
app._got_first_request = False
- async_query_manager.init_app(app)
+ async_query_manager_factory.init_app(app)
rv = self.fetch_events()
assert rv.status_code == 401