Add a basic test
This commit is contained in:
12
tests/test_basic.py
Normal file
12
tests/test_basic.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import pytest
|
||||
import tornado.web
|
||||
from app import make_app
|
||||
|
||||
@pytest.fixture
|
||||
def app():
|
||||
return make_app()
|
||||
|
||||
@pytest.mark.gen_test
|
||||
def test_hello_world(http_client, base_url):
|
||||
response = yield http_client.fetch(base_url)
|
||||
assert response.code == 200
|
Reference in New Issue
Block a user