test(api): fix incorrect import in tests

This commit is contained in:
QuantumGhost 2025-09-17 16:09:36 +08:00
parent fbf0e5dd78
commit 9c1b49b7f5
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ from pathlib import Path
from typing import Any, Optional
from core.app.entities.app_invoke_entities import InvokeFrom
from core.tools.utils.yaml_utils import load_yaml_file
from core.tools.utils.yaml_utils import _load_yaml_file
from core.variables import (
ArrayNumberVariable,
ArrayObjectVariable,
@ -715,4 +715,4 @@ def _load_fixture(fixture_path: Path, fixture_name: str) -> dict[str, Any]:
if not fixture_path.exists():
raise FileNotFoundError(f"Fixture file not found: {fixture_path}")
return load_yaml_file(str(fixture_path), ignore_error=False)
return _load_yaml_file(file_path=str(fixture_path))