def test_get_item_with_enums(self):
        """
        REST Api: Test get item with enums
        """
        with model_with_enums_data(self.appbuilder.session, 1):
            model1 = (
                self.appbuilder.get_session.query(ModelWithEnums)
                .filter(ModelWithEnums.enum1 == "e1")
                .first()
            )
            pk = model1.id
            client = self.app.test_client()
            token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)
            uri = f"api/v1/modelwithenumsapi/{pk}"
            rv = self.auth_client_get(client, token, uri)
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(rv.status_code, 200)
            self.assertEqual(data["result"], {"enum1": "e1", "enum2": 2, "enum3": "e3"})

        REST Api: Test get item with enums
        
tests/test_api.py