(self, eio)
| 145 | ) |
| 146 | |
| 147 | async def test_send(self, eio): |
| 148 | mgr = self._get_mock_manager() |
| 149 | s = async_server.AsyncServer(client_manager=mgr) |
| 150 | await s.send( |
| 151 | 'foo', |
| 152 | to='room', |
| 153 | skip_sid='123', |
| 154 | namespace='/foo', |
| 155 | callback='cb', |
| 156 | ) |
| 157 | s.manager.emit.assert_awaited_once_with( |
| 158 | 'message', |
| 159 | 'foo', |
| 160 | '/foo', |
| 161 | room='room', |
| 162 | skip_sid='123', |
| 163 | callback='cb', |
| 164 | ignore_queue=False, |
| 165 | ) |
| 166 | await s.send( |
| 167 | 'foo', |
| 168 | room='room', |
| 169 | skip_sid='123', |
| 170 | namespace='/foo', |
| 171 | callback='cb', |
| 172 | ignore_queue=True, |
| 173 | ) |
| 174 | s.manager.emit.assert_awaited_with( |
| 175 | 'message', |
| 176 | 'foo', |
| 177 | '/foo', |
| 178 | room='room', |
| 179 | skip_sid='123', |
| 180 | callback='cb', |
| 181 | ignore_queue=True, |
| 182 | ) |
| 183 | |
| 184 | async def test_call(self, eio): |
| 185 | mgr = self._get_mock_manager() |
nothing calls this directly
no test coverage detected