Use tornado's AsyncHttpClient for ApiClient

This commit is contained in:
richard-dds
2018-06-11 14:49:52 -04:00
parent 1ecb7bce78
commit 72258ef46a
2 changed files with 31 additions and 10 deletions

10
tests/test_api_client.py Normal file
View 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