mirror of
https://github.com/dataforcanada/d4c-service-geo-assistant.git
synced 2026-06-15 07:21:02 +02:00
Mark test requiring ollama server as xfail (#10)
Should only run these locally for now
This commit is contained in:
@@ -5,7 +5,7 @@ from langchain.agents import create_agent
|
|||||||
from geo_assistant.agent.state import GeoAssistantState
|
from geo_assistant.agent.state import GeoAssistantState
|
||||||
from geo_assistant.agent.llms import llm
|
from geo_assistant.agent.llms import llm
|
||||||
from geo_assistant.tools.overture import get_place
|
from geo_assistant.tools.overture import get_place
|
||||||
from src.geo_assistant.tools.buffer import get_search_area
|
from geo_assistant.tools.buffer import get_search_area
|
||||||
|
|
||||||
SYSTEM_PROMPT = """
|
SYSTEM_PROMPT = """
|
||||||
You are a helpful assistant that can answer questions and help with tasks.
|
You are a helpful assistant that can answer questions and help with tasks.
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ async def initialized_app():
|
|||||||
del app.state.chatbot
|
del app.state.chatbot
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.xfail
|
||||||
async def test_hello_world(initialized_app):
|
async def test_hello_world(initialized_app):
|
||||||
"""Hello world test for the API"""
|
"""Hello world test for the API"""
|
||||||
async with AsyncClient(
|
async with AsyncClient(
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ TEST_IMAGE_URL = "https://petapixel.com/assets/uploads/2022/08/French-Officials-
|
|||||||
(TEST_IMAGE_URL, "building"),
|
(TEST_IMAGE_URL, "building"),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@pytest.mark.xfail
|
||||||
def test_summarize_sat_img(img_url, summary):
|
def test_summarize_sat_img(img_url, summary):
|
||||||
command = summarize_sat_img.invoke(
|
command = summarize_sat_img.invoke(
|
||||||
ToolCall(
|
ToolCall(
|
||||||
|
|||||||
Reference in New Issue
Block a user