Coverage for tests / brokers / redis / conftest.py: 91%

11 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-05-08 01:48 +0000

1from dataclasses import dataclass 

2 

3import pytest 

4 

5from faststream.redis import RedisRouter 

6 

7 

8@dataclass 

9class Settings: 

10 url: str = "redis://localhost:6379" 

11 host: str = "localhost" 

12 port: int = 6379 

13 

14 

15@pytest.fixture(scope="session") 

16def settings(): 

17 return Settings() 

18 

19 

20@pytest.fixture() 

21def router(): 

22 return RedisRouter()