Skip to content

Commit

Permalink
Merge pull request #20 from GatorEducator/new-feature/quizagator-data…
Browse files Browse the repository at this point in the history
…base

New feature/quizagator database
  • Loading branch information
Michionlion authored Apr 25, 2019
2 parents a31fe0d + 9ded672 commit eb7a163
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# LOGIN THE USER
@app.route("/login/", methods=["POST"])
def login():
""" undocumented """
""" function that logs student or teacher in """
# get form information
form_data = flask.request.form

Expand Down
Binary file added quizagator.db
Binary file not shown.
18 changes: 18 additions & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,26 @@
import pytest

from application import app
from application import login



def test_app_created():
"""Start with a blank database."""
assert app is not None

class FlaskrTestCase(unittest.TestCase):

def setUp(self):
self.db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp()
flaskr.app.testing = True
self.app = flaskr.app.test_client()
with flaskr.app.app_context():
flaskr.init_db()


# def test_index(app):
# res = app.get("/")
# # print(dir(res), res.status_code)
# assert res.status_code == 200
# assert b"" in res.data

0 comments on commit eb7a163

Please sign in to comment.