MCPcopy Index your code
hub / github.com/plotly/dash / ws_hook_cleanup

Function ws_hook_cleanup

tests/websocket/conftest.py:6–12  ·  view source on GitHub ↗

Clean up WebSocket hooks after each test.

()

Source from the content-addressed store, hash-verified

4
5@pytest.fixture
6def ws_hook_cleanup():
7 """Clean up WebSocket hooks after each test."""
8 yield
9 hooks._ns["websocket_connect"] = []
10 hooks._ns["websocket_message"] = []
11 hooks._finals.pop("websocket_connect", None)
12 hooks._finals.pop("websocket_message", None)

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…