File size: 444 Bytes
88e3f4a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"