Skip to content

Commit

Permalink
Add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Nov 11, 2023
1 parent 76ff585 commit f4be3a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jupyter-ai/jupyter_ai/tests/test_config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def reset(config_path, schema_path):

@pytest.fixture
def config_with_bad_provider_ids(tmp_path):
"""Fixture that creates a `config.json` file with bad provider ids in `tmp_path` folder and returns path to the file."""
"""Fixture that creates a `config.json` with model_provider_id and embeddings_provider_id values that would not associate with models. File is created in `tmp_path` folder. Function returns path to the file."""
config_data = {
"model_provider_id:": "foo:bar",
"embeddings_provider_id": "buzz:fizz",
Expand All @@ -102,6 +102,7 @@ def config_with_bad_provider_ids(tmp_path):

@pytest.fixture
def cm_with_bad_provider_ids(common_cm_kwargs, config_with_bad_provider_ids):
"""Config manager instance created with `config_path` set to mocked `config.json` with model_provider_id and embeddings_provider_id values that would not associate with models."""
common_cm_kwargs["config_path"] = config_with_bad_provider_ids
return ConfigManager(**common_cm_kwargs)

Expand Down

0 comments on commit f4be3a2

Please sign in to comment.