import pytest
from app import app
@pytest.fixture
def client():
app.config["TESTING"] = True
with app.test_client() as c:
yield c
def test_index(client):
r = client.get("/")
assert r.status_code == 200
import pytest
from app import app
@pytest.fixture
def client():
app.config["TESTING"] = True
with app.test_client() as c:
yield c
def test_index(client):
r = client.get("/")
assert r.status_code == 200