Skip to content

Commit bfffd4b

Browse files
committed
try import create_chat_app
1 parent d83caa5 commit bfffd4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_ui_web.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
import pytest
66

77
from pydantic_ai import Agent
8-
from pydantic_ai.ui.web import AI_MODELS, BUILTIN_TOOLS, create_chat_app
98

109
from .conftest import try_import
1110

1211
with try_import() as fastapi_import_successful:
1312
from fastapi import FastAPI
1413
from fastapi.testclient import TestClient
1514

15+
from pydantic_ai.ui.web import AI_MODELS, BUILTIN_TOOLS, create_chat_app
16+
1617
pytestmark = [
1718
pytest.mark.skipif(not fastapi_import_successful, reason='fastapi not installed'),
1819
]

0 commit comments

Comments
 (0)