def METHOD_NAME(self, fake_mtime, db_session):
    """Test template update"""
    template = Template(
        name="run",
        file="run.json",
        idxname="run-data",
        template_name="tname",
        template_pattern="drb.v1.run.*",
        index_template="drb.v1.run.{year}-{month}",
        settings={"none": False},
        mappings={"properties": None},
        version=5,
    )
    template.add()
    template.idxname = None
    with pytest.raises(TemplateMissingParameter) as e:
        template.update()
    assert str(e.value).startswith("Missing required parameters in 'run'")