userver: samples/redis_service/testsuite/conftest.py
Loading...
Searching...
No Matches
samples/redis_service/testsuite/conftest.py
1# /// [redis setup]
2import json
3
4import pytest
5
6pytest_plugins = ['pytest_userver.plugins.redis']
7# /// [redis setup]
8
9
10# /// [service_env]
11@pytest.fixture(scope='session')
12def service_env(redis_sentinels):
13 secdist_config = {
14 'redis_settings': {
15 'taxi-tmp': {
16 'password': '',
17 'sentinels': redis_sentinels,
18 'shards': [{'name': 'test_master0'}],
19 },
20 },
21 }
22
23 return {'SECDIST_CONFIG': json.dumps(secdist_config)}
24 # /// [service_env]