From ae4b16b60668b36c301906cb1af76927f8cfed80 Mon Sep 17 00:00:00 2001 From: Tomer Nosrati Date: Tue, 17 Sep 2024 13:31:01 +0300 Subject: [PATCH] Fixed Redis error in the smoke tests: "Possible SECURITY ATTACK detected" --- tests/conftest.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 5addc584..063da150 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,21 +3,7 @@ import pytest from celery import Celery -from pytest_celery import ALL_CELERY_BROKERS -from pytest_celery import CELERY_LOCALSTACK_BROKER from pytest_celery import LOCALSTACK_CREDS -from pytest_celery import CeleryTestBroker -from pytest_celery import _is_vendor_installed - -if _is_vendor_installed("localstack"): - ALL_CELERY_BROKERS.add(CELERY_LOCALSTACK_BROKER) - - -@pytest.fixture(params=ALL_CELERY_BROKERS) -def celery_broker(request: pytest.FixtureRequest) -> CeleryTestBroker: # type: ignore - broker: CeleryTestBroker = request.getfixturevalue(request.param) - yield broker - broker.teardown() @pytest.fixture