def test_deepspeed_precision_choice(_, precision):
    """Test to ensure precision plugin is correctly chosen.

    DeepSpeed handles precision via custom DeepSpeedPrecision.

    """
    connector = _Connector(
        accelerator="auto",
        strategy="deepspeed",
        precision=precision,
    )

    assert isinstance(connector.strategy, DeepSpeedStrategy)
    assert isinstance(connector.strategy.precision, DeepSpeedPrecision)
    assert connector.strategy.precision.precision == str(precision)
Test to ensure precision plugin is correctly chosen.

    DeepSpeed handles precision via custom DeepSpeedPrecision.

    
tests/tests_fabric/plugins/precision/test_deepspeed_integration.py