Generate a handshake request that can be altered for testing.
()
| 29 | |
| 30 | |
| 31 | def make_request(): |
| 32 | """Generate a handshake request that can be altered for testing.""" |
| 33 | return Request( |
| 34 | path="/test", |
| 35 | headers=Headers( |
| 36 | { |
| 37 | "Host": "example.com", |
| 38 | "Upgrade": "websocket", |
| 39 | "Connection": "Upgrade", |
| 40 | "Sec-WebSocket-Key": KEY, |
| 41 | "Sec-WebSocket-Version": "13", |
| 42 | } |
| 43 | ), |
| 44 | ) |
| 45 | |
| 46 | |
| 47 | @patch("email.utils.formatdate", return_value=DATE) |
no test coverage detected
searching dependent graphs…