Skip to content

Commit 11253ba

Browse files
committed
test inline docs
1 parent f035736 commit 11253ba

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/test_asyncio/test_sentinel_managed_connection.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async def test_connects_to_same_address_if_same_id_replica(
129129
"""
130130
Assert that the connection address is the same if the ``_iter_req_id`` is the same
131131
when we are in replica mode using a
132-
:py:class:`~redis.asyncio.sentinel.SentinelConnectionPool`
132+
:py:class:`~redis.asyncio.sentinel.SentinelConnectionPool`.
133133
"""
134134
connection_for_req_1 = await connection_pool_replica_mock.get_connection(
135135
"ANY", _iter_req_id=1
@@ -148,7 +148,7 @@ async def test_connects_to_same_conn_object_if_same_id_and_conn_released_replica
148148
when we are in replica mode using a
149149
:py:class:`~redis.asyncio.sentinel.SentinelConnectionPool`
150150
and if we release the connection back to the connection pool before
151-
trying to connect again
151+
trying to connect again.
152152
"""
153153
connection_for_req_1 = await connection_pool_replica_mock.get_connection(
154154
"ANY", _iter_req_id=1
@@ -164,7 +164,7 @@ async def test_connects_to_diff_address_if_no_iter_req_id_replica(
164164
connection_pool_replica_mock: SentinelConnectionPool,
165165
) -> None:
166166
"""
167-
Assert that the connection object is different if no _iter_req_id is supplied
167+
Assert that the connection object is different if no _iter_req_id is supplied.
168168
In reality, they can be the same, but in this case, we're not
169169
releasing the connection to the pool so they should always be different.
170170
"""
@@ -191,7 +191,7 @@ async def test_connects_to_same_address_if_same_iter_req_id_master(
191191
"""
192192
Assert that the connection address is the same if the ``_iter_req_id`` is the same
193193
when we are in master mode using a
194-
:py:class:`~redis.asyncio.sentinel.SentinelConnectionPool`
194+
:py:class:`~redis.asyncio.sentinel.SentinelConnectionPool`.
195195
"""
196196
connection_for_req_1 = await connection_pool_master_mock.get_connection(
197197
"ANY", _iter_req_id=1
@@ -210,7 +210,7 @@ async def test_connects_to_same_conn_object_if_same_iter_req_id_and_released_mas
210210
when we are in master mode using a
211211
:py:class:`~redis.asyncio.sentinel.SentinelConnectionPool`
212212
and if we release the connection back to the connection pool before
213-
trying to connect again
213+
trying to connect again.
214214
"""
215215
connection_for_req_1 = await connection_pool_master_mock.get_connection(
216216
"ANY", _iter_req_id=1
@@ -221,14 +221,14 @@ async def test_connects_to_same_conn_object_if_same_iter_req_id_and_released_mas
221221
)
222222

223223

224-
async def test_connects_to_same_address_if_no_iter_req_id_in_master(
224+
async def test_connects_to_same_address_if_no_iter_req_id_master(
225225
connection_pool_master_mock: SentinelConnectionPool,
226226
) -> None:
227227
"""
228228
Assert that connection address is always the same regardless if
229229
there's an ``iter_req_id`` or not
230230
when we are in master mode using a
231-
:py:class:`~redis.asyncio.sentinel.SentinelConnectionPool`
231+
:py:class:`~redis.asyncio.sentinel.SentinelConnectionPool`.
232232
"""
233233
connection_for_req_1 = await connection_pool_master_mock.get_connection(
234234
"ANY", _iter_req_id=1

0 commit comments

Comments
 (0)