1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
""" Configuration file for all unit tests. """ import pytest from app import app @pytest.fixture def client(): """Returns a Flask API client to interact with.""" app.config['TESTING'] = True with app.test_client() as client: yield client