18 lines
312 B
Python
18 lines
312 B
Python
|
#!/usr/bin/env python3
|
||
|
|
||
|
import pytest
|
||
|
from my_homepage import create_app
|
||
|
|
||
|
@pytest.fixture
|
||
|
def app():
|
||
|
app = create_app({"TESTING": True})
|
||
|
yield app
|
||
|
|
||
|
@pytest.fixture
|
||
|
def client(app):
|
||
|
return app.test_client()
|
||
|
|
||
|
def test_app(client):
|
||
|
response = client.get("/")
|
||
|
assert(response.status_code == 200)
|