def METHOD_NAME(data_fixture):
    user = data_fixture.create_user()
    table = data_fixture.create_database_table(user=user)
    field = data_fixture.create_text_field(table=table, order=1)
    handler = FieldHandler()
    field = handler.update_field(user=user, field=field, name="Text field")
    model = table.get_model()
    mapping = {
        "1": True,
        "t": True,
        "y": True,
        "yes": True,
        "on": True,
        "YES": True,
        "checked": True,
        "Checked": True,
        "": False,
        "f": False,
        "n": False,
        "false": False,
        "off": False,
        "Random text": False,
    }
    for value in mapping.keys():
        model.objects.create(**{f"field_{field.id}": value})
    # Change the field type to a boolean and test if the values have been changed.
    field = handler.update_field(user=user, field=field, new_type_name="boolean")
    model = table.get_model()
    rows = model.objects.all()
    for index, value in enumerate(mapping.values()):
        assert getattr(rows[index], f"field_{field.id}") == value