Skip to content

Commit 9159507

Browse files
committed
test(models): retire obsolete cloud-provider contracts
1 parent 6258458 commit 9159507

2 files changed

Lines changed: 5 additions & 59 deletions

File tree

tests/test_api_adapter_hardening.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,34 +63,30 @@ def test_oversized_prompt_is_refused_with_reason(self):
6363
class TestStopClearsCapability:
6464
def test_stop_revokes_advertised_capability(self):
6565
adapter = APIAdapter()
66-
adapter.has_gemini = True
6766
adapter.has_local = True
6867

6968
asyncio.run(adapter.stop())
7069

71-
assert adapter.has_gemini is False
7270
assert adapter.has_local is False
73-
assert adapter.get_status()["gemini"] is False
71+
assert adapter.get_status()["local"] is False
7472
assert adapter.get_available_tiers() == []
7573

7674

7775
class TestStatusIsACopy:
7876
def test_counters_cannot_be_mutated_through_status(self):
7977
adapter = APIAdapter()
8078
status = adapter.get_status()
81-
status["calls"]["gemini"] = 999
82-
assert adapter._call_count["gemini"] == 0
79+
status["calls"]["local"] = 999
80+
assert adapter._call_count["local"] == 0
8381

8482

8583
class TestEmbeddingSpaceIsIdentified:
8684
def test_local_fallback_declares_its_vector_space(self):
8785
adapter = APIAdapter()
88-
adapter.has_gemini = False
8986

9087
vector = asyncio.run(adapter.embed_async("hello world"))
9188

9289
assert isinstance(vector, list) and vector
93-
# A lexical vector must be distinguishable from a cloud embedding so
94-
# callers never mix incomparable spaces in one index.
90+
# The adapter exposes one explicit local vector space; callers cannot
91+
# accidentally mix it with a retired remote-provider embedding space.
9592
assert adapter.last_embedding_space() == APIAdapter.LOCAL_EMBED_SPACE
96-
assert adapter.last_embedding_space() != APIAdapter.CLOUD_EMBED_SPACE

tests/test_inference_gate_cp126_status.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)