File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ def pytest_sessionstart(session):
139
139
REDIS_INFO ["arch_bits" ] = arch_bits
140
140
REDIS_INFO ["cluster_enabled" ] = cluster_enabled
141
141
REDIS_INFO ["enterprise" ] = info ["enterprise" ]
142
+ # store REDIS_INFO in config so that it is available from "condition strings"
143
+ session .config .REDIS_INFO = REDIS_INFO
142
144
143
145
# module info, if the second redis is running
144
146
try :
Original file line number Diff line number Diff line change @@ -39,14 +39,14 @@ async def _get_info(redis_url):
39
39
pytest .param (
40
40
(True , PythonParser ),
41
41
marks = pytest .mark .skipif (
42
- 'REDIS_INFO["cluster_enabled"]' , reason = "cluster mode enabled"
42
+ 'config. REDIS_INFO["cluster_enabled"]' , reason = "cluster mode enabled"
43
43
),
44
44
),
45
45
(False , PythonParser ),
46
46
pytest .param (
47
47
(True , HiredisParser ),
48
48
marks = pytest .mark .skipif (
49
- not HIREDIS_AVAILABLE or 'REDIS_INFO["cluster_enabled"]' ,
49
+ not HIREDIS_AVAILABLE or 'config. REDIS_INFO["cluster_enabled"]' ,
50
50
reason = "hiredis is not installed or cluster mode enabled" ,
51
51
),
52
52
),
You can’t perform that action at this time.
0 commit comments