codesmidgen/tests/test_views.py

17 lines
285 B
Python
Raw Normal View History

import pytest
2023-07-28 06:14:10 +00:00
from codesmidgen.app import make_app
pytestmark = [pytest.mark.asyncio]
@pytest.fixture
def app():
return make_app()
async def test_index(app):
test_client = app.test_client()
response = await test_client.get('/')
assert response.status_code == 200