def test_get_list_custom_search_filters(self):
        """
        REST Api: Test get list custom filters
        """
        session = self.appbuilder.get_session
        model1_1 = Model1(field_string="abc", field_integer=2)
        # Custom filter will get this next model (not like 'test' and field_integer=1)
        model1_2 = Model1(field_string="abcd", field_integer=1)
        session.add(model1_1)
        session.add(model1_2)
        session.commit()

        filter_value = "test"
        arguments = {
            API_FILTERS_RIS_KEY: [
                {"col": "field_string", "opr": "custom_filter", "value": filter_value}
            ]
        }
        rison_args = prison.dumps(arguments)
        uri = f"api/v1/model1apisearchfilters/?{API_URI_RIS_KEY}={rison_args}"

        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)
        with model1_data(self.appbuilder.session, MODEL1_DATA_SIZE):
            rv = self.auth_client_get(client, token, uri)
            self.assertEqual(rv.status_code, 200)
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(data["count"], 1)
            expected_result = [
                {
                    "field_date": None,
                    "field_float": None,
                    "field_integer": 1,
                    "field_string": "abcd",
                }
            ]
            self.assertEqual(data[API_RESULT_RES_KEY], expected_result)

            arguments = {
                API_FILTERS_RIS_KEY: [
                    {
                        "col": "field_string",
                        "opr": "custom_filter",
                        "value": filter_value,
                    },
                    {"col": "field_integer", "opr": "eq", "value": 3},
                ]
            }
            rison_args = prison.dumps(arguments)
            uri = f"api/v1/model1apisearchfilters/?{API_URI_RIS_KEY}={rison_args}"
            rv = self.auth_client_get(client, token, uri)
            self.assertEqual(rv.status_code, 200)
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(data["count"], 0)
            session.delete(model1_1)
            session.delete(model1_2)
            session.commit()

        REST Api: Test get list custom filters
        
tests/test_api.py