added tests
This commit is contained in:
9
tests/app_test.py
Normal file
9
tests/app_test.py
Normal 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
|
||||
Reference in New Issue
Block a user