def METHOD_NAME(field_instance):
    with patch.object(FieldTestAdapter, "__init__", return_value=None), patch.object(
        FieldTestAdapter, "get_query_from_values", side_effect=lambda x: ", ".join(x)
    ):
        fta = FieldTestAdapter("field")
        fta.valid_field = "component_valid"
        fta.invalid_field = "component_invalid"
        fta.validity_query = None
        fta.name = "component_name"
        fta.validity = "component_validity"
        yield fta