Skip to content

Commit 5d5ff26

Browse files
committed
Marked tests non-clsuter only
1 parent e3bfa78 commit 5d5ff26

14 files changed

+29
-0
lines changed

tests/test_asyncio/test_multidb/test_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from tests.test_asyncio.test_multidb.conftest import create_weighted_list
1616

1717

18+
@pytest.mark.onlynoncluster
1819
class TestMultiDbClient:
1920
@pytest.mark.asyncio
2021
@pytest.mark.parametrize(

tests/test_asyncio/test_multidb/test_command_executor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from tests.test_asyncio.test_multidb.conftest import create_weighted_list
1515

1616

17+
@pytest.mark.onlynoncluster
1718
class TestDefaultCommandExecutor:
1819
@pytest.mark.asyncio
1920
@pytest.mark.parametrize(

tests/test_asyncio/test_multidb/test_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from unittest.mock import Mock
22

3+
import pytest
4+
35
from redis.asyncio import ConnectionPool
46
from redis.asyncio.multidb.config import (
57
DatabaseConfig,
@@ -22,6 +24,7 @@
2224
from redis.multidb.circuit import CircuitBreaker
2325

2426

27+
@pytest.mark.onlynoncluster
2528
class TestMultiDbConfig:
2629
def test_default_config(self):
2730
db_configs = [
@@ -137,6 +140,7 @@ def test_overridden_config(self):
137140
assert config.auto_fallback_interval == auto_fallback_interval
138141

139142

143+
@pytest.mark.onlynoncluster
140144
class TestDatabaseConfig:
141145
def test_default_config(self):
142146
config = DatabaseConfig(

tests/test_asyncio/test_multidb/test_failover.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
)
1515

1616

17+
@pytest.mark.onlynoncluster
1718
class TestAsyncWeightBasedFailoverStrategy:
1819
@pytest.mark.asyncio
1920
@pytest.mark.parametrize(

tests/test_asyncio/test_multidb/test_failure_detector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from redis.multidb.failure_detector import CommandFailureDetector
1111

1212

13+
@pytest.mark.onlynoncluster
1314
class TestFailureDetectorAsyncWrapper:
1415
@pytest.mark.asyncio
1516
@pytest.mark.parametrize(

tests/test_asyncio/test_multidb/test_healthcheck.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from redis.multidb.exception import UnhealthyDatabaseException
1717

1818

19+
@pytest.mark.onlynoncluster
1920
class TestHealthyAllPolicy:
2021
@pytest.mark.asyncio
2122
async def test_policy_returns_true_for_all_successful_probes(self):
@@ -58,6 +59,7 @@ async def test_policy_raise_unhealthy_database_exception(self):
5859
assert mock_hc2.check_health.call_count == 0
5960

6061

62+
@pytest.mark.onlynoncluster
6163
class TestHealthyMajorityPolicy:
6264
@pytest.mark.asyncio
6365
@pytest.mark.parametrize(
@@ -151,6 +153,7 @@ async def test_policy_raise_unhealthy_database_exception_on_majority_probes_exce
151153
assert mock_hc2.check_health.call_count == hc2_call_count
152154

153155

156+
@pytest.mark.onlynoncluster
154157
class TestHealthyAnyPolicy:
155158
@pytest.mark.asyncio
156159
@pytest.mark.parametrize(
@@ -204,6 +207,7 @@ async def test_policy_raise_unhealthy_database_exception_if_exception_occurs_on_
204207
assert mock_hc2.check_health.call_count == 0
205208

206209

210+
@pytest.mark.onlynoncluster
207211
class TestEchoHealthCheck:
208212
@pytest.mark.asyncio
209213
async def test_database_is_healthy_on_echo_response(self, mock_client, mock_cb):
@@ -246,6 +250,7 @@ async def test_database_close_circuit_on_successful_healthcheck(
246250
assert mock_client.execute_command.call_count == 1
247251

248252

253+
@pytest.mark.onlynoncluster
249254
class TestLagAwareHealthCheck:
250255
@pytest.mark.asyncio
251256
async def test_database_is_healthy_when_bdb_matches_by_dns_name(

tests/test_multidb/test_circuit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
)
99

1010

11+
@pytest.mark.onlynoncluster
1112
class TestPBCircuitBreaker:
1213
@pytest.mark.parametrize(
1314
"mock_db",

tests/test_multidb/test_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from tests.test_multidb.conftest import create_weighted_list
1616

1717

18+
@pytest.mark.onlynoncluster
1819
class TestMultiDbClient:
1920
@pytest.mark.parametrize(
2021
"mock_multi_db_config,mock_db, mock_db1, mock_db2",

tests/test_multidb/test_command_executor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from tests.test_multidb.conftest import create_weighted_list
1313

1414

15+
@pytest.mark.onlynoncluster
1516
class TestDefaultCommandExecutor:
1617
@pytest.mark.parametrize(
1718
"mock_db,mock_db1,mock_db2",

tests/test_multidb/test_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
from unittest.mock import Mock
2+
3+
import pytest
4+
25
from redis.connection import ConnectionPool
36
from redis.multidb.circuit import (
47
PBCircuitBreakerAdapter,
@@ -18,6 +21,7 @@
1821
from redis.retry import Retry
1922

2023

24+
@pytest.mark.onlynoncluster
2125
class TestMultiDbConfig:
2226
def test_default_config(self):
2327
db_configs = [

0 commit comments

Comments
 (0)