ref: Some ruff fixes from preview (#5420)
* Some ruff fixes from preview * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
3454ede5a5
commit
e91bcc2520
79 changed files with 402 additions and 374 deletions
|
|
@ -11,6 +11,7 @@ import anyio
|
|||
import pytest
|
||||
from asgi_lifespan import LifespanManager
|
||||
from httpx import ASGITransport, AsyncClient
|
||||
from langflow.main import create_app
|
||||
from langflow.services.deps import get_storage_service
|
||||
from langflow.services.storage.service import StorageService
|
||||
from sqlmodel import Session
|
||||
|
|
@ -60,8 +61,6 @@ async def files_client_fixture(
|
|||
monkeypatch.setenv("LANGFLOW_LOAD_FLOWS_PATH", load_flows_dir)
|
||||
monkeypatch.setenv("LANGFLOW_AUTO_LOGIN", "true")
|
||||
|
||||
from langflow.main import create_app
|
||||
|
||||
app = create_app()
|
||||
return app, db_path
|
||||
|
||||
|
|
@ -81,14 +80,14 @@ async def files_client_fixture(
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
async def max_file_size_upload_fixture(monkeypatch):
|
||||
def max_file_size_upload_fixture(monkeypatch):
|
||||
monkeypatch.setenv("LANGFLOW_MAX_FILE_SIZE_UPLOAD", "1")
|
||||
yield
|
||||
monkeypatch.undo()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def max_file_size_upload_10mb_fixture(monkeypatch):
|
||||
def max_file_size_upload_10mb_fixture(monkeypatch):
|
||||
monkeypatch.setenv("LANGFLOW_MAX_FILE_SIZE_UPLOAD", "10")
|
||||
yield
|
||||
monkeypatch.undo()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue