"""Test configuration. This file gets picked up when running py.test tests: http://pytest.org/latest/writing_plugins.html#conftest """ import pytest from fastapi.testclient import TestClient import application @pytest.fixture def test_client(): """Gets a test client. Returns: TestClient: FastAPI test client """ return TestClient(application.app)