Skip to content

Commit 342276f

Browse files
committed
fix(sdk/python): drop unused imports after EmitEvent removal
ruff flagged httpx and redundant local os imports left after removing the emit_event tests.
1 parent 10898e6 commit 342276f

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

sdk/python/tests/test_client.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import warnings
88

99
from evidence_api.tdx.quote import TdxQuote
10-
import httpx
1110
import pytest
1211

1312
from dstack_sdk import AsyncDstackClient
@@ -236,8 +235,6 @@ def test_tls_key_with_alt_names():
236235
def test_unix_socket_file_not_exist():
237236
"""Test that client raises error when Unix socket file doesn't exist."""
238237
# Temporarily remove environment variable to test file check
239-
import os
240-
241238
saved_env = os.environ.get("DSTACK_SIMULATOR_ENDPOINT")
242239
if "DSTACK_SIMULATOR_ENDPOINT" in os.environ:
243240
del os.environ["DSTACK_SIMULATOR_ENDPOINT"]
@@ -256,8 +253,6 @@ def test_unix_socket_file_not_exist():
256253

257254
def test_non_unix_socket_endpoints():
258255
"""Test that client doesn't throw error for non-unix socket paths."""
259-
import os
260-
261256
saved_env = os.environ.get("DSTACK_SIMULATOR_ENDPOINT")
262257
if "DSTACK_SIMULATOR_ENDPOINT" in os.environ:
263258
del os.environ["DSTACK_SIMULATOR_ENDPOINT"]

0 commit comments

Comments
 (0)