| 1968 | ) |
| 1969 | |
| 1970 | class FakeContent: |
| 1971 | def __init__(self, text: str): |
| 1972 | self._text = text |
| 1973 | |
| 1974 | async def read(self, size: int) -> bytes: |
| 1975 | return self._text.encode("utf-8")[:size] |
| 1976 | |
| 1977 | class FakeResponse: |
| 1978 | def __init__(self, status: int, *, text: str = "", payload=None): |
no outgoing calls