Skip to content

Commit ea74fe2

Browse files
Fix CI issues
1 parent bf508b0 commit ea74fe2

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

stackone_ai/feedback/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from pydantic import BaseModel, Field, field_validator
88

9+
from stackone_ai.constants import DEFAULT_BASE_URL
910
from stackone_ai.models import (
1011
ExecuteConfig,
1112
JsonDict,
@@ -14,7 +15,6 @@
1415
StackOneTool,
1516
ToolParameters,
1617
)
17-
from stackone_ai.constants import DEFAULT_BASE_URL
1818

1919

2020
class FeedbackInput(BaseModel):

stackone_ai/toolset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from importlib import metadata
1414
from typing import Any, Literal, TypeVar
1515

16+
from stackone_ai.constants import DEFAULT_BASE_URL
1617
from stackone_ai.models import (
1718
ExecuteConfig,
1819
ParameterLocation,
@@ -25,7 +26,6 @@
2526
SemanticSearchError,
2627
SemanticSearchResult,
2728
)
28-
from stackone_ai.constants import DEFAULT_BASE_URL
2929
from stackone_ai.utils.normalize import _normalize_action_name
3030

3131
logger = logging.getLogger("stackone.tools")

tests/conftest.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
from __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-
115
import os
126
import socket
137
import subprocess
@@ -17,6 +11,12 @@
1711

1812
import 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

2121
def _find_free_port() -> int:
2222
"""Find a free port on localhost."""

tests/test_feedback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
from stackone_ai.constants import DEFAULT_BASE_URL
1616
from stackone_ai.feedback import create_feedback_tool
17-
from tests.conftest import TEST_BASE_URL
1817
from 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

0 commit comments

Comments
 (0)