test_refresh_works_without_augmentations() — langchain Function Reference
Architecture documentation for the test_refresh_works_without_augmentations() function in test_cli.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD aa4e10ee_b404_e480_2abb_fd3ec23f99fd["test_refresh_works_without_augmentations()"] 8f48d3cf_da07_6b86_6f4f_33b7967df9e0["test_cli.py"] aa4e10ee_b404_e480_2abb_fd3ec23f99fd -->|defined in| 8f48d3cf_da07_6b86_6f4f_33b7967df9e0 style aa4e10ee_b404_e480_2abb_fd3ec23f99fd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/model-profiles/tests/unit_tests/test_cli.py lines 122–143
def test_refresh_works_without_augmentations(
tmp_path: Path, mock_models_dev_response: dict
) -> None:
"""Test that refresh works even without augmentations file."""
data_dir = tmp_path / "data"
data_dir.mkdir()
# Mock the httpx.get call
mock_response = Mock()
mock_response.json.return_value = mock_models_dev_response
mock_response.raise_for_status = Mock()
with (
patch("langchain_model_profiles.cli.httpx.get", return_value=mock_response),
patch("builtins.input", return_value="y"),
):
refresh("anthropic", data_dir)
# Verify _profiles.py was created
profiles_file = data_dir / "_profiles.py"
assert profiles_file.exists()
assert profiles_file.stat().st_size > 0
Domain
Subdomains
Source
Frequently Asked Questions
What does test_refresh_works_without_augmentations() do?
test_refresh_works_without_augmentations() is a function in the langchain codebase, defined in libs/model-profiles/tests/unit_tests/test_cli.py.
Where is test_refresh_works_without_augmentations() defined?
test_refresh_works_without_augmentations() is defined in libs/model-profiles/tests/unit_tests/test_cli.py at line 122.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free