MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / test_connect_timeout

Method test_connect_timeout

tests/common/test_client.py:411–421  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

409 assert c.failed_namespaces == ['/baz', '/foo']
410
411 def test_connect_timeout(self):
412 c = client.Client()
413 c.eio.connect = mock.MagicMock()
414 c.disconnect = mock.MagicMock()
415 with pytest.raises(exceptions.ConnectionError):
416 c.connect(
417 'url',
418 wait=True,
419 wait_timeout=0.01,
420 )
421 c.disconnect.assert_called_once_with()
422
423 def test_wait_no_reconnect(self):
424 c = client.Client()

Callers

nothing calls this directly

Calls 1

connectMethod · 0.95

Tested by

no test coverage detected