forked from pool/python-python-engineio
Compare commits
13 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 9caf827ccb | |||
| 3fcd75c05f | |||
| 6f36c9b611 | |||
| 396c594c20 | |||
| 0cb9def0ae | |||
| 1758937229 | |||
| e947477506 | |||
| 8a0ea1dc78 | |||
| 7d821b0e41 | |||
| d5aadebcf1 | |||
| 491721d3db | |||
| e362c2515c | |||
| b3a9640422 |
@@ -1,54 +0,0 @@
|
|||||||
diff --git a/tests/asyncio/test_asyncio_server.py b/tests/asyncio/test_asyncio_server.py
|
|
||||||
index 47b3e6e..a55e1e0 100644
|
|
||||||
--- a/tests/asyncio/test_asyncio_server.py
|
|
||||||
+++ b/tests/asyncio/test_asyncio_server.py
|
|
||||||
@@ -278,9 +278,9 @@ def test_connect_custom_ping_times(self, import_module):
|
|
||||||
assert packets[0].data['pingTimeout'] == 123000
|
|
||||||
assert packets[0].data['pingInterval'] == 456000
|
|
||||||
|
|
||||||
- @mock.patch('engineio.asyncio_socket.AsyncSocket')
|
|
||||||
@mock.patch('importlib.import_module')
|
|
||||||
- def test_connect_bad_poll(self, import_module, AsyncSocket):
|
|
||||||
+ @mock.patch('engineio.asyncio_server.asyncio_socket.AsyncSocket')
|
|
||||||
+ def test_connect_bad_poll(self, AsyncSocket, import_module):
|
|
||||||
a = self.get_async_mock()
|
|
||||||
import_module.side_effect = [a]
|
|
||||||
AsyncSocket.return_value = self._get_mock_socket()
|
|
||||||
@@ -290,9 +290,9 @@ def test_connect_bad_poll(self, import_module, AsyncSocket):
|
|
||||||
assert a._async['make_response'].call_count == 1
|
|
||||||
assert a._async['make_response'].call_args[0][0] == '400 BAD REQUEST'
|
|
||||||
|
|
||||||
- @mock.patch('engineio.asyncio_socket.AsyncSocket')
|
|
||||||
@mock.patch('importlib.import_module')
|
|
||||||
- def test_connect_transport_websocket(self, import_module, AsyncSocket):
|
|
||||||
+ @mock.patch('engineio.asyncio_server.asyncio_socket.AsyncSocket')
|
|
||||||
+ def test_connect_transport_websocket(self, AsyncSocket, import_module):
|
|
||||||
a = self.get_async_mock(
|
|
||||||
{
|
|
||||||
'REQUEST_METHOD': 'GET',
|
|
||||||
@@ -312,9 +312,9 @@ def test_connect_transport_websocket(self, import_module, AsyncSocket):
|
|
||||||
== packet.OPEN
|
|
||||||
)
|
|
||||||
|
|
||||||
- @mock.patch('engineio.asyncio_socket.AsyncSocket')
|
|
||||||
@mock.patch('importlib.import_module')
|
|
||||||
- def test_http_upgrade_case_insensitive(self, import_module, AsyncSocket):
|
|
||||||
+ @mock.patch('engineio.asyncio_server.asyncio_socket.AsyncSocket')
|
|
||||||
+ def test_http_upgrade_case_insensitive(self, AsyncSocket, import_module):
|
|
||||||
a = self.get_async_mock(
|
|
||||||
{
|
|
||||||
'REQUEST_METHOD': 'GET',
|
|
||||||
@@ -334,11 +334,10 @@ def test_http_upgrade_case_insensitive(self, import_module, AsyncSocket):
|
|
||||||
== packet.OPEN
|
|
||||||
)
|
|
||||||
|
|
||||||
- @mock.patch('engineio.asyncio_socket.AsyncSocket')
|
|
||||||
@mock.patch('importlib.import_module')
|
|
||||||
+ @mock.patch('engineio.asyncio_server.asyncio_socket.AsyncSocket')
|
|
||||||
def test_connect_transport_websocket_closed(
|
|
||||||
- self, import_module, AsyncSocket
|
|
||||||
- ):
|
|
||||||
+ self, AsyncSocket, import_module):
|
|
||||||
a = self.get_async_mock(
|
|
||||||
{
|
|
||||||
'REQUEST_METHOD': 'GET',
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1f6ff1c3b3463a453b8eafa7a81f1dd52bd1728bf524988f9ab99b71c31a8d8e
|
|
||||||
size 300665
|
|
||||||
Reference in New Issue
Block a user