From 49fda3601248d939b0cfff1bff5a18800e498bdc Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 11 Oct 2017 19:39:04 -0400 Subject: The HTML is kind of jank --- tests.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests.py (limited to 'tests.py') diff --git a/tests.py b/tests.py new file mode 100644 index 0000000..9d52baa --- /dev/null +++ b/tests.py @@ -0,0 +1,10 @@ +from apistar.test import TestClient +from app import app, welcome + + +def test_welcome(): + """ + Testing a view directly. + """ + data = welcome() + assert data == {'message': 'Welcome to API Star!'} -- cgit v1.2.3