Use tornado's AsyncHttpClient for ApiClient
This commit is contained in:
10
tests/test_api_client.py
Normal file
10
tests/test_api_client.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import pytest
|
||||
|
||||
from atst.api_client import ApiClient
|
||||
|
||||
|
||||
@pytest.mark.gen_test
|
||||
def test_api_client(http_client, base_url):
|
||||
client = ApiClient(base_url)
|
||||
response = yield client.get('')
|
||||
assert response.code == 200
|
Reference in New Issue
Block a user