Skip to content

Commit 2537ce8

Browse files
committed
Ditch type enforcement test
1 parent 24df3c6 commit 2537ce8

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

tests/integration/test_vectorizers.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -173,18 +173,6 @@ def test_vectorizer_embed_many(vectorizer):
173173
)
174174

175175

176-
@pytest.mark.requires_api_keys
177-
def test_vectorizer_bad_input(vectorizer):
178-
with pytest.raises(TypeError):
179-
vectorizer.embed(1)
180-
181-
with pytest.raises(TypeError):
182-
vectorizer.embed({"foo": "bar"})
183-
184-
with pytest.raises(TypeError):
185-
vectorizer.embed_many(42)
186-
187-
188176
def test_vectorizer_with_cache(cached_vectorizer):
189177
"""Test the complete cache flow - miss, store, hit."""
190178
# First call - should be a cache miss

tests/unit/test_embedcache_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_cache_entry_deserialization():
6565
"""Test that a CacheEntry properly deserializes data from Redis format."""
6666
serialized_data = {
6767
"entry_id": "test_id",
68-
"text": "What is AI?",
68+
"content": "What is AI?",
6969
"model_name": "text-embedding-ada-002",
7070
"embedding": json.dumps([0.1, 0.2, 0.3]), # Serialized embedding
7171
"metadata": json.dumps({"source": "user_query"}), # Serialized metadata
@@ -74,7 +74,7 @@ def test_cache_entry_deserialization():
7474

7575
entry = CacheEntry(**serialized_data)
7676
assert entry.entry_id == "test_id"
77-
assert entry.text == "What is AI?"
77+
assert entry.content == "What is AI?"
7878
assert entry.model_name == "text-embedding-ada-002"
7979
assert entry.embedding == [0.1, 0.2, 0.3] # Should be deserialized
8080
assert entry.metadata == {"source": "user_query"} # Should be deserialized

0 commit comments

Comments
 (0)