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
|
|
@ -1,11 +1,10 @@
|
|||
from unittest.mock import Mock, patch
|
||||
|
||||
from langflow.exceptions.api import APIException, ExceptionBody
|
||||
from langflow.services.database.models.flow.model import Flow
|
||||
|
||||
|
||||
def test_api_exception():
|
||||
from langflow.exceptions.api import APIException, ExceptionBody
|
||||
|
||||
mock_exception = Exception("Test exception")
|
||||
mock_flow = Mock(spec=Flow)
|
||||
mock_outdated_components = ["component1", "component2"]
|
||||
|
|
@ -45,8 +44,6 @@ def test_api_exception():
|
|||
|
||||
|
||||
def test_api_exception_no_flow():
|
||||
from langflow.exceptions.api import APIException, ExceptionBody
|
||||
|
||||
# Mock data
|
||||
mock_exception = Exception("Test exception")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue