mirror of
https://github.com/Doctorado-ML/beflask.git
synced 2025-08-16 07:35:51 +00:00
13 lines
305 B
Python
13 lines
305 B
Python
from beflask import app
|
|
|
|
|
|
def test_config():
|
|
assert not app.create_app()[1].testing
|
|
assert app.create_app("testing")[1].testing
|
|
|
|
|
|
def test_index(client):
|
|
response = client.get("/")
|
|
# check image is in the response
|
|
assert b"img/robert-lukeman-_RBcxo9AU-U-unsplash.jpg" in response.data
|