From 09e13cd0f222ac423eaf11c5c2c23c379bbc135a Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 26 Jan 2025 18:40:37 +0100 Subject: [PATCH] more debug --- tests/asyncio/test_client.py | 3 --- tox.ini | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/asyncio/test_client.py b/tests/asyncio/test_client.py index d9ff032f..ed823cd8 100644 --- a/tests/asyncio/test_client.py +++ b/tests/asyncio/test_client.py @@ -156,7 +156,6 @@ def create_connection(*args, **kwargs): ) as client: self.assertTrue(client.create_connection_ran) - @unittest.skip("TODO - skipped to get a passing run") async def test_reconnect(self): """Client reconnects to server.""" iterations = 0 @@ -190,7 +189,6 @@ async def process_request(connection, request): self.assertEqual(iterations, 6) self.assertEqual(successful, 2) - @unittest.skip("TODO - skipped to get a passing run") async def test_reconnect_with_custom_process_exception(self): """Client runs process_exception to tell if errors are retryable or fatal.""" iteration = 0 @@ -224,7 +222,6 @@ def process_exception(exc): "🫖 💔 ☕️", ) - @unittest.skip("TODO - skipped to get a passing run") async def test_reconnect_with_custom_process_exception_raising_exception(self): """Client supports raising an exception in process_exception.""" diff --git a/tox.ini b/tox.ini index 2c64e42a..7141634b 100644 --- a/tox.ini +++ b/tox.ini @@ -20,12 +20,14 @@ deps = [testenv:coverage] commands = - python -m coverage run --source {envsitepackagesdir}/websockets,tests -m unittest {posargs} + python -u -m coverage run --source {envsitepackagesdir}/websockets,tests -m unittest -v -k test_reconnect {posargs} python -m coverage report --show-missing --fail-under=100 deps = coverage mitmproxy python-socks +setenv = + WEBSOCKETS_DEBUG=1 [testenv:maxi_cov] commands =