Commit 182aa0f
committed
Mocks Redis connection in unit test to avoid real ping
Prevents actual Redis connections during testing by using AsyncMock
for the Redis client and its ping method. Increases test isolation
and reliability by removing dependency on an external Redis server.1 parent 844627c commit 182aa0f
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
1833 | 1834 | | |
1834 | 1835 | | |
1835 | 1836 | | |
1836 | | - | |
1837 | | - | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
1838 | 1842 | | |
1839 | 1843 | | |
1840 | 1844 | | |
| |||
0 commit comments