Initial Flask demo
This commit is contained in:
11
tests/test_app.py
Normal file
11
tests/test_app.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from app import app
|
||||
|
||||
def test_home_status():
|
||||
client = app.test_client()
|
||||
r = client.get("/")
|
||||
assert r.status_code == 200
|
||||
|
||||
def test_home_text():
|
||||
client = app.test_client()
|
||||
r = client.get("/")
|
||||
assert b"Flask CI/CD demo" in r.data
|
||||
Reference in New Issue
Block a user