(
fin: bool,
opcode: int,
payload: bytes | bytearray,
compressed: int,
)
| 44 | frames: list[tuple[bool, int, bytes | bytearray, int]] = [] |
| 45 | |
| 46 | def _handle_frame( |
| 47 | fin: bool, |
| 48 | opcode: int, |
| 49 | payload: bytes | bytearray, |
| 50 | compressed: int, |
| 51 | ) -> None: |
| 52 | # This method is overridden to allow for patching in tests. |
| 53 | frames.append((fin, opcode, payload, compressed)) |
| 54 | |
| 55 | with mock.patch.object(self, "_handle_frame", _handle_frame): |
| 56 | self._feed_data(data) |
no test coverage detected