Skip to content

Commit 7afcc72

Browse files
authored
Refactor/refactor tests (#57)
1 parent 926227a commit 7afcc72

64 files changed

Lines changed: 4750 additions & 3105 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/cd-langchain.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ jobs:
9393
- name: Smoke test (wheel with all extras)
9494
run: |
9595
WHEEL=$(ls dist/*.whl)
96-
uv run --isolated --no-project --with "${WHEEL}[all]" tests/langchain/langchain_smoke_test.py
96+
uv run --isolated --no-project --with "${WHEEL}[all]" tests/langchain/smoke_test.py
9797
9898
- name: Smoke test (source distribution with all extras)
9999
run: |
100100
SDIST=$(ls dist/*.tar.gz)
101-
uv run --isolated --no-project --with "${SDIST}[all]" tests/langchain/langchain_smoke_test.py
101+
uv run --isolated --no-project --with "${SDIST}[all]" tests/langchain/smoke_test.py
102102
103103
- name: Publish package
104104
run: uv publish

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
- name: Smoke test (wheel with all extras)
4141
run: |
4242
WHEEL=$(ls dist/*.whl)
43-
uv run --isolated --no-project --with "${WHEEL}[all]" tests/core/core_smoke_test.py
43+
uv run --isolated --no-project --with "${WHEEL}[all]" tests/core/smoke_test.py
4444
4545
- name: Smoke test (source distribution with all extras)
4646
run: |
4747
SDIST=$(ls dist/*.tar.gz)
48-
uv run --isolated --no-project --with "${SDIST}[all]" tests/core/core_smoke_test.py
48+
uv run --isolated --no-project --with "${SDIST}[all]" tests/core/smoke_test.py
4949
5050
- name: Publish package
5151
run: uv publish

tests/cassettes.db

-26.5 MB
Binary file not shown.

tests/conftest.py

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

33
from uipath.llm_client.settings import UiPathBaseSettings
44
from uipath.llm_client.settings.llmgateway import LLMGatewaySettings
5-
from uipath.llm_client.settings.platform import PlatformSettings
65

76

87
@pytest.fixture(autouse=True, scope="session")
@@ -56,15 +55,8 @@ def pytest_recording_configure(config, vcr):
5655
vcr.register_persister(SQLitePersister)
5756

5857

59-
# Only "llmgw" is parameterized because Platform (agenthub) requires `uipath auth`
60-
# credentials that are not available in CI. Platform-specific logic is tested
61-
# via mocked settings in test_base_client.py.
62-
@pytest.fixture(scope="session", params=["llmgw"])
58+
# Only "llmgateway" is parameterized because Platform (agenthub) requires `uipath auth`
59+
# credentials that are not available in CI.
60+
@pytest.fixture(scope="session", params=["llmgateway"])
6361
def client_settings(request: pytest.FixtureRequest) -> UiPathBaseSettings:
64-
match request.param:
65-
case "llmgw":
66-
return LLMGatewaySettings()
67-
case "agenthub":
68-
return PlatformSettings()
69-
case _:
70-
raise ValueError(f"Invalid client type: {request.param}")
62+
return LLMGatewaySettings()

tests/core/clients/__init__.py

Whitespace-only changes.

tests/core/clients/anthropic/__init__.py

Whitespace-only changes.

tests/core/clients/google/__init__.py

Whitespace-only changes.

tests/core/clients/normalized/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)