Lightweight UserSettings for tests — uses a smaller model than the production default.
()
| 26 | # NOTE: deliberately NOT prefixed with `test_` — pytest auto-collects any |
| 27 | # top-level `test_*` function as a test case. |
| 28 | def 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") |
no test coverage detected