amanuensis/tests/test_server.py

14 lines
337 B
Python
Raw Normal View History

2021-06-14 01:14:26 +00:00
from flask import Flask
def test_app_testing(app: Flask):
"""Confirm that the test config loads correctly."""
assert app.testing
def test_client(app: Flask):
"""Test that the test client works."""
with app.test_client() as client:
2021-06-29 07:35:23 +00:00
response = client.get("/home/")
assert b"Amanuensis" in response.data