MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / make_test_user_settings

Function make_test_user_settings

tests/conftest.py:28–37  ·  view source on GitHub ↗

Lightweight UserSettings for tests — uses a smaller model than the production default.

()

Source from the content-addressed store, hash-verified

26# NOTE: deliberately NOT prefixed with `test_` — pytest auto-collects any
27# top-level `test_*` function as a test case.
28def make_test_user_settings() -> UserSettings:
29 """Lightweight UserSettings for tests — uses a smaller model than the production default."""
30 from cocoindex_code.settings import EmbeddingSettings, UserSettings
31
32 return UserSettings(
33 embedding=EmbeddingSettings(
34 provider="sentence-transformers",
35 model=TEST_EMBEDDING_MODEL,
36 ),
37 )
38
39
40@pytest.fixture(scope="session")

Callers 3

daemon_sockFunction · 0.90
e2e_projectFunction · 0.90
e2e_daemonFunction · 0.90

Calls 2

UserSettingsClass · 0.90
EmbeddingSettingsClass · 0.90

Tested by

no test coverage detected