from typing import List
import json


def create_valid_sensor_config(camera_views: List[str], vehicle_id: str) -> str:
    """Create test sensor configs for the given camera views"""
    return json.dumps(
        {
            "objects": [
                {
                    "id": vehicle_id,
                    "sensors": [
                        {
                            "type": "sensor.camera.rgb",
                            "id": view,
                            "spawn_point": {"yaw": 0.0},
                        }
                        for view in camera_views
                    ],
                }
            ]
        }
    )