def METHOD_NAME(self, fake_mtime, db_session):
    """Test dataset constructor when non-nullable columns are omitted;
    the constuctor works, but SQL will throw an IntegrityError when we
    try to commit to the DB.
    """
    with pytest.raises(TemplateMissingParameter) as e:
        template = Template(
            name="run",
            file="map.json",
            template_name="tname",
            template_pattern="drb.v1.run.*",
            index_template="drb.v1.run.{year}-{month}",
            version=5,
        )
        template.add()
    assert str(e).find("run") != -1