added tests

This commit is contained in:
2019-07-04 17:09:33 +01:00
parent 8c8eae000d
commit 0a26afdbfe
4 changed files with 30 additions and 2 deletions

9
tests/app_test.py Normal file
View File

@@ -0,0 +1,9 @@
import pytest
import requests
url = 'http://127.0.0.1:5000' # The root url of the flask app
def test_index_page():
r = requests.get(url+'/') # Assumses that it has a path of "/"
assert r.status_code == 200 # Assumes that it will return a 200 response