def test_config_type_consistency(merged_config):
    """Test that configuration values maintain their expected types."""
    config = R2RConfig(merged_config)
    assert isinstance(
        config.database.graph_creation_settings.
        graph_entity_description_prompt,
        str,
    )
    assert isinstance(
        config.database.graph_creation_settings.automatic_deduplication, bool)
    assert isinstance(config.ingestion.chunking_strategy, str)
    if hasattr(config.database.graph_creation_settings,
               "max_knowledge_relationships"):
        assert isinstance(
            config.database.graph_creation_settings.
            max_knowledge_relationships,
            int,
        )
Test that configuration values maintain their expected types.
py/tests/unit/app/test_config.py