omniff / tests /python /unit /test_client.py
stukenov's picture
Initial upload: OmniFF — FFmpeg for AI
88e3f4a verified
from omniff.client import AsyncClient, SyncClient
def test_async_client_init():
client = AsyncClient("http://localhost:8000")
assert client.base_url == "http://localhost:8000"
def test_async_client_trailing_slash():
client = AsyncClient("http://localhost:8000/")
assert client.base_url == "http://localhost:8000"
def test_sync_client_init():
client = SyncClient()
assert client.base_url == "http://localhost:8000"