hellocomputer/test/test_prompts.py
Guillem Borrell e1ffeef646
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
File upload and session management work
2024-07-27 22:05:29 +02:00

12 lines
331 B
Python

import pytest
from hellocomputer.prompts import Prompts
from langchain.prompts import PromptTemplate
@pytest.mark.asyncio
async def test_get_general_prompt():
general: PromptTemplate = await Prompts.general()
assert general.format(query="whatever").startswith(
"You've been asked to do a task you can't do"
)