Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sec-gemini-python/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 2 additions & 1 deletion sec-gemini-python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
import httpx
import pytest
from pytest_httpx import HTTPXMock
from utils import require_env_variable

from .utils import require_env_variable

from sec_gemini import SecGemini
from sec_gemini.models.enums import State, UserType
Expand Down
3 changes: 3 additions & 0 deletions sec-gemini-python/tests/test_local_tools_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from mcp.server.fastmcp.tools import Tool
from rich.markdown import Markdown

from .utils import async_require_env_variable

from sec_gemini import SecGemini, State
from sec_gemini.models.enums import MessageType, MimeType
from sec_gemini.models.local_tool import LocalTool
Expand Down Expand Up @@ -270,6 +272,7 @@ def tool_with_optional_int(value: int | None = None):
print()


@async_require_env_variable("SEC_GEMINI_API_KEY")
@pytest.mark.asyncio
async def test_list_dir_and_sha256_local_tools() -> None:
"""Tests the local tool integration by streaming a prompt that requires file listing and hashing."""
Expand Down
5 changes: 3 additions & 2 deletions sec-gemini-python/tests/test_secgemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
from typing import TypeVar

import pytest
from conftest import MOCK_SEC_GEMINI_API_HOST
from pytest_httpx import HTTPXMock
from rich import print as rprint
from utils import (

from .conftest import MOCK_SEC_GEMINI_API_HOST
from .utils import (
async_require_env_variable,
parse_secgemini_response,
require_env_variable,
Expand Down
Loading