aboutsummaryrefslogtreecommitdiffstats
path: root/tests/frontend.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-04-20 16:12:20 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-04-20 16:17:48 -0700
commitcc85fa69262b6e937e9d675808ca779d15c6fd85 (patch)
tree1ed07b144819f39da895ae088fd78c75b77237d2 /tests/frontend.py
parent5fa778fcf771b2512844e43e19e5785260ee0452 (diff)
downloadfatcat-cc85fa69262b6e937e9d675808ca779d15c6fd85.tar.gz
fatcat-cc85fa69262b6e937e9d675808ca779d15c6fd85.zip
refactor tests around more
Diffstat (limited to 'tests/frontend.py')
-rw-r--r--tests/frontend.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/frontend.py b/tests/frontend.py
deleted file mode 100644
index e177f8c0..00000000
--- a/tests/frontend.py
+++ /dev/null
@@ -1,32 +0,0 @@
-
-import os
-import json
-import pytest
-import fatcat
-import fatcat.sql
-from fatcat.models import *
-import unittest
-import tempfile
-
-
-@pytest.fixture
-def app():
- fatcat.app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite://'
- fatcat.app.testing = True
- fatcat.app.debug = True
- fatcat.db.session.remove()
- fatcat.db.drop_all()
- fatcat.db.create_all()
- fatcat.sql.populate_db()
- return fatcat.app.test_client()
-
-
-def test_static_routes(app):
-
- for route in ('/health', '/robots.txt', '/', '/about'):
- rv = app.get(route)
- assert rv.status_code == 200
-
- assert app.get("/static/bogus/route").status_code == 404
-
-