Skip to content

Commit

Permalink
Change import path on test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Dec 18, 2022
1 parent 5ec6a9a commit 7a12806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/worker/test_inspector.py
Expand Up @@ -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)
Expand All @@ -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")
Expand Down

0 comments on commit 7a12806

Please sign in to comment.