MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / FakeContent

Class FakeContent

tests/test_fastapi_v1_dashboard.py:1970–1975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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):

Callers 2

__init__Method · 0.85
FakeResponseClass · 0.85

Calls

no outgoing calls

Tested by 1

__init__Method · 0.68