Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Jan 26, 2025
1 parent 08ac8cd commit 09e13cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions tests/asyncio/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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."""

Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 09e13cd

Please sign in to comment.