def METHOD_NAME(self):
    form = FormFactory.create(
        generate_minimal_setup=True,
        formstep__form_definition__configuration={
            "components": [{"type": "textfield", "key": "test"}]
        },
    )
    variable = form.formvariable_set.get(key="test")
    self.assertEqual("string", variable.data_type)