def METHOD_NAME(tmp_path):
    """Test wxcode processing with insufficient files"""
    kgo_dir = acc.kgo_root() / "wxcode"
    params = [
        "low_and_medium_type_cloud_area_fraction_above",
        "low_type_cloud_area_fraction_above",
        "lwe_thickness_of_snowfall_amount_above",
        "thickness_of_rainfall_amount_above",
    ]
    param_paths = [
        kgo_dir / "global" / f"probability_of_{p}_threshold.nc" for p in params
    ]
    wxtree = kgo_dir / "wx_decision_tree.json"
    output_path = tmp_path / "output.nc"
    args = [
        *param_paths,
        "--wxtree",
        wxtree,
        "--model-id-attr",
        "mosg__model_configuration",
        "--target-period",
        "10800",
        "--output",
        output_path,
    ]
    with pytest.raises(OSError):
        run_cli(args)