docs: add code fences to Example: docstring blocks (#2104)
This commit is contained in:
parent
c0328540c9
commit
cb07adeca3
1 changed files with 83 additions and 18 deletions
|
|
@ -77,7 +77,8 @@ class StreamSpyCollection:
|
|||
def stream_spy() -> Generator[Callable[[], StreamSpyCollection], None, None]:
|
||||
"""Fixture that provides spies for both client and server write streams.
|
||||
|
||||
Example usage:
|
||||
Example:
|
||||
```python
|
||||
async def test_something(stream_spy):
|
||||
# ... set up server and client ...
|
||||
|
||||
|
|
@ -92,6 +93,7 @@ def stream_spy() -> Generator[Callable[[], StreamSpyCollection], None, None]:
|
|||
|
||||
# Clear for the next operation
|
||||
spies.clear()
|
||||
```
|
||||
"""
|
||||
client_spy = None
|
||||
server_spy = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue