🚧 chore(conftest.py): add runner fixture to enable CLI testing
🔧 chore(conftest.py): import CliRunner from typer.testing to enable CLI testing 🔧 chore(conftest.py): remove unused imports and blank lines for code cleanliness
This commit is contained in:
parent
a9db2da6bf
commit
7776977378
1 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ from fastapi.testclient import TestClient
|
|||
from httpx import AsyncClient
|
||||
from sqlmodel import SQLModel, Session, create_engine
|
||||
from sqlmodel.pool import StaticPool
|
||||
from typer.testing import CliRunner
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langflow.services.database.base import DatabaseManager
|
||||
|
|
@ -149,3 +150,8 @@ def session_getter_fixture(client):
|
|||
yield session
|
||||
|
||||
yield blank_session_getter
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def runner():
|
||||
return CliRunner()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue