diff options
Diffstat (limited to 'tests.py')
| -rw-r--r-- | tests.py | 10 |
1 files changed, 10 insertions, 0 deletions
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!'} |
