File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 66
77from pydantic import BaseModel , Field , field_validator
88
9+ from stackone_ai .constants import DEFAULT_BASE_URL
910from stackone_ai .models import (
1011 ExecuteConfig ,
1112 JsonDict ,
1415 StackOneTool ,
1516 ToolParameters ,
1617)
17- from stackone_ai .constants import DEFAULT_BASE_URL
1818
1919
2020class FeedbackInput (BaseModel ):
Original file line number Diff line number Diff line change 1313from importlib import metadata
1414from typing import Any , Literal , TypeVar
1515
16+ from stackone_ai .constants import DEFAULT_BASE_URL
1617from stackone_ai .models import (
1718 ExecuteConfig ,
1819 ParameterLocation ,
2526 SemanticSearchError ,
2627 SemanticSearchResult ,
2728)
28- from stackone_ai .constants import DEFAULT_BASE_URL
2929from stackone_ai .utils .normalize import _normalize_action_name
3030
3131logger = logging .getLogger ("stackone.tools" )
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- # Test base URL - used instead of production URLs in all test mocks.
6- # Since respx intercepts at the HTTP client level before DNS resolution,
7- # any URL string works for matching; http://localhost avoids exposing
8- # real infrastructure URLs.
9- TEST_BASE_URL = "http://localhost"
10-
115import os
126import socket
137import subprocess
1711
1812import pytest
1913
14+ # Test base URL - used instead of production URLs in all test mocks.
15+ # Since respx intercepts at the HTTP client level before DNS resolution,
16+ # any URL string works for matching; http://localhost avoids exposing
17+ # real infrastructure URLs.
18+ TEST_BASE_URL = "http://localhost"
19+
2020
2121def _find_free_port () -> int :
2222 """Find a free port on localhost."""
Original file line number Diff line number Diff line change 1414
1515from stackone_ai .constants import DEFAULT_BASE_URL
1616from stackone_ai .feedback import create_feedback_tool
17- from tests .conftest import TEST_BASE_URL
1817from stackone_ai .models import StackOneError
18+ from tests .conftest import TEST_BASE_URL
1919
2020# Hypothesis strategies for PBT
2121# Various whitespace characters including Unicode
You can’t perform that action at this time.
0 commit comments