Skip to content

Commit 09e13cd

Browse files
committed
more debug
1 parent 08ac8cd commit 09e13cd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/asyncio/test_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ def create_connection(*args, **kwargs):
156156
) as client:
157157
self.assertTrue(client.create_connection_ran)
158158

159-
@unittest.skip("TODO - skipped to get a passing run")
160159
async def test_reconnect(self):
161160
"""Client reconnects to server."""
162161
iterations = 0
@@ -190,7 +189,6 @@ async def process_request(connection, request):
190189
self.assertEqual(iterations, 6)
191190
self.assertEqual(successful, 2)
192191

193-
@unittest.skip("TODO - skipped to get a passing run")
194192
async def test_reconnect_with_custom_process_exception(self):
195193
"""Client runs process_exception to tell if errors are retryable or fatal."""
196194
iteration = 0
@@ -224,7 +222,6 @@ def process_exception(exc):
224222
"🫖 💔 ☕️",
225223
)
226224

227-
@unittest.skip("TODO - skipped to get a passing run")
228225
async def test_reconnect_with_custom_process_exception_raising_exception(self):
229226
"""Client supports raising an exception in process_exception."""
230227

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ deps =
2020

2121
[testenv:coverage]
2222
commands =
23-
python -m coverage run --source {envsitepackagesdir}/websockets,tests -m unittest {posargs}
23+
python -u -m coverage run --source {envsitepackagesdir}/websockets,tests -m unittest -v -k test_reconnect {posargs}
2424
python -m coverage report --show-missing --fail-under=100
2525
deps =
2626
coverage
2727
mitmproxy
2828
python-socks
29+
setenv =
30+
WEBSOCKETS_DEBUG=1
2931

3032
[testenv:maxi_cov]
3133
commands =

0 commit comments

Comments
 (0)