mirror of
https://github.com/langgenius/dify.git
synced 2026-05-22 18:08:40 +08:00
Co-authored-by: Copilot <copilot@github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
22 lines
623 B
Python
22 lines
623 B
Python
from __future__ import annotations
|
|
|
|
import importlib
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
|
|
PROJECT_ROOT = Path(__file__).resolve().parents[3]
|
|
|
|
|
|
def test_dify_agent_examples_are_importable_from_repo_checkout(monkeypatch: pytest.MonkeyPatch) -> None:
|
|
monkeypatch.syspath_prepend(str(PROJECT_ROOT / "examples" / "dify_agent"))
|
|
|
|
for module_name in [
|
|
"dify_agent_examples.run_pydantic_ai_agent",
|
|
"dify_agent_examples.run_server_consumer",
|
|
"dify_agent_examples.run_server_sse_consumer",
|
|
"dify_agent_examples.run_server_sync_client",
|
|
]:
|
|
importlib.import_module(module_name)
|