()
| 169 | |
| 170 | |
| 171 | def test_websocket_repr() -> None: |
| 172 | assert repr(WebSocketException(1008, reason="Policy Violation")) == ( |
| 173 | "WebSocketException(code=1008, reason='Policy Violation')" |
| 174 | ) |
| 175 | |
| 176 | class CustomWebSocketException(WebSocketException): |
| 177 | pass |
| 178 | |
| 179 | assert ( |
| 180 | repr(CustomWebSocketException(1013, reason="Something custom")) |
| 181 | == "CustomWebSocketException(code=1013, reason='Something custom')" |
| 182 | ) |
| 183 | |
| 184 | |
| 185 | def test_request_in_app_and_handler_is_the_same_object(client: TestClient) -> None: |
nothing calls this directly
no test coverage detected