🔧 chore(conftest.py): change scope of client fixture to module and add autouse=True to ensure it is automatically used by all tests in the module

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-25 16:29:51 -03:00
commit 1364fa0e0f

View file

@ -45,7 +45,7 @@ async def async_client() -> AsyncGenerator:
# Create client fixture for FastAPI
@pytest.fixture(scope="module")
@pytest.fixture(scope="module", autouse=True)
def client():
from langflow.main import create_app