Fix unit test?

This commit is contained in:
2021-12-23 04:20:09 +00:00
parent 0c715abd3a
commit 29a2c373fd
3 changed files with 2 additions and 2 deletions

View File

View File

@@ -0,0 +1,17 @@
#!/usr/bin/env python3
import pytest
from .. 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)