def METHOD_NAME(self, tmp_path: Path) -> None:
    """Test _validate_runtime_or_docker.
    With ``runtime=None`` and ``docker.disabled=True``.
    """
    with pytest.raises(ValidationError) as excinfo:
        AwsLambdaHookArgs(
            bucket_name="test-bucket",
            docker=DockerOptions(disabled=True),
            source_code=tmp_path,
        )
    errors = excinfo.value.errors()
    assert len(errors) == 1
    assert errors[0]["loc"] == ("runtime",)
    assert errors[0]["msg"] == "runtime must be provided if docker.disabled is True"