Skip to content

Commit f8b5013

Browse files
committed
Fix unused imports and clean up ruff warnings
1 parent a7668c3 commit f8b5013

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

test_ui.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from pathlib import Path
1515
from typing import Optional
1616
import tempfile
17-
import os
1817

1918
# Import the SDK
2019
from decart import DecartClient, models
@@ -297,7 +296,7 @@ def on_status_change(job):
297296

298297
with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False) as f:
299298
f.write(result.data)
300-
return f.name, f"Success! Generated video from image"
299+
return f.name, "Success! Generated video from image"
301300

302301
except Exception as e:
303302
return None, f"Error: {str(e)}"

tests/test_realtime_unit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ async def test_subscribe_mode_skips_passthrough():
11881188
mock_manager_class.return_value = mock_manager
11891189

11901190
# subscribe() passes local_track=None internally
1191-
from decart.realtime.subscribe import SubscribeClient, encode_subscribe_token
1191+
from decart.realtime.subscribe import encode_subscribe_token
11921192

11931193
token = encode_subscribe_token("test-sid", "1.2.3.4", 8080)
11941194

0 commit comments

Comments
 (0)