MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / mock_embedder_model

Function mock_embedder_model

tests/conftest.py:180–185  ·  view source on GitHub ↗

Mock embedder model for unit testing.

()

Source from the content-addressed store, hash-verified

178
179@pytest.fixture
180def mock_embedder_model():
181 """Mock embedder model for unit testing."""
182 mock = Mock()
183 mock.embed_documents = Mock(return_value=[[0.1, 0.2, 0.3]])
184 mock.embed_query = Mock(return_value=[0.1, 0.2, 0.3])
185 return mock
186
187
188# ============================================================================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected