Files
photools3/test/test_llm_session_integration.py
T
mathias2784 906707de55
Tests / test_and_lint (push) Successful in 11s
first successful run of photo llm (#11)
Reviewed-on: #11
Co-authored-by: Mathias Scheider <mathias2784@web.de>
2026-10-02 08:16:20 +00:00

14 lines
343 B
Python

import pytest
from photools3.llm_session import LlmSession
@pytest.mark.skipif(
not LlmSession(system_prompt="").is_api_reachable(), reason="API not available"
)
def test_llm_session(llm_session, test_photo):
result = llm_session.call(
prompt="keywords for the attached picture", photos=[test_photo]
)
assert result