From 7a128062b84818f744bb25da919067ca8658f0ef Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Sun, 18 Dec 2022 10:13:53 +0200 Subject: [PATCH] Change import path on test --- tests/worker/test_inspector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/worker/test_inspector.py b/tests/worker/test_inspector.py index 73d5c866d3..bc9dd2d527 100644 --- a/tests/worker/test_inspector.py +++ b/tests/worker/test_inspector.py @@ -57,7 +57,7 @@ def http_client(inspector): @pytest.mark.parametrize("command", ("info",)) -@patch("sanic.worker.inspector.sys.stdout.write") +@patch("sanic.cli.inspector_client.sys.stdout.write") def test_send_inspect(write, urlopen, command: str): urlopen.read.return_value = FULL_SERIALIZED.encode() InspectorClient("localhost", 9999, False, False, None).do(command) @@ -67,7 +67,7 @@ def test_send_inspect(write, urlopen, command: str): write.assert_called_with(OUT_SERIALIZED + "\n") -@patch("sanic.worker.inspector.sys") +@patch("sanic.cli.inspector_client.sys") def test_send_inspect_conn_refused(sys: Mock, urlopen): urlopen.side_effect = URLError("") InspectorClient("localhost", 9999, False, False, None).do("info")