diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2017-10-11 19:39:04 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2017-10-11 19:39:56 -0400 |
| commit | 49fda3601248d939b0cfff1bff5a18800e498bdc (patch) | |
| tree | de97903cdb154a9ba11d8d2b603c2b90c45aa8a0 /tests.py | |
The HTML is kind of jank
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!'} |
