diff options
author | Daniel Schadt <kingdread@gmx.de> | 2022-06-28 14:04:27 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2022-06-28 14:04:27 +0200 |
commit | 77ac79f1b29e8b07c74852e3c5be83abf6424c7a (patch) | |
tree | e5653ce152d39c066423d3dec9992c4e225a243f /tests/test_functional.py | |
download | fietsboek-77ac79f1b29e8b07c74852e3c5be83abf6424c7a.tar.gz fietsboek-77ac79f1b29e8b07c74852e3c5be83abf6424c7a.tar.bz2 fietsboek-77ac79f1b29e8b07c74852e3c5be83abf6424c7a.zip |
Initial commit
Diffstat (limited to 'tests/test_functional.py')
-rw-r--r-- | tests/test_functional.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py new file mode 100644 index 0000000..6102063 --- /dev/null +++ b/tests/test_functional.py @@ -0,0 +1,13 @@ +from fietsboek import models + +def test_my_view_success(testapp, dbsession): + model = models.MyModel(name='one', value=55) + dbsession.add(model) + dbsession.flush() + + res = testapp.get('/', status=200) + assert res.body + +def test_notfound(testapp): + res = testapp.get('/badurl', status=404) + assert res.status_code == 404 |