aboutsummaryrefslogtreecommitdiff
path: root/tests/test_functional.py
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-07-07 12:31:49 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-07-07 12:31:49 +0200
commitaebf11a0cf6141f287fcbe40fbb094eeb702ec2a (patch)
tree39b8035bb825657cd90fb00c3a72e949cb6022ba /tests/test_functional.py
parent2cf5859a0bdb8771a73cd8fd65a45da5503cf184 (diff)
downloadfietsboek-aebf11a0cf6141f287fcbe40fbb094eeb702ec2a.tar.gz
fietsboek-aebf11a0cf6141f287fcbe40fbb094eeb702ec2a.tar.bz2
fietsboek-aebf11a0cf6141f287fcbe40fbb094eeb702ec2a.zip
start adding some unit tests
Diffstat (limited to 'tests/test_functional.py')
-rw-r--r--tests/test_functional.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py
deleted file mode 100644
index 6102063..0000000
--- a/tests/test_functional.py
+++ /dev/null
@@ -1,13 +0,0 @@
-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