def test_delete_item_not_found(self):
        """
        REST Api: Test delete item not found
        """
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)

        with model1_data(self.appbuilder.session, 2):
            max_id = self.appbuilder.get_session.query(func.max(Model1.id)).scalar()
            pk = max_id + 1
            uri = f"api/v1/model1api/{pk}"
            rv = self.auth_client_delete(client, token, uri)
            self.assertEqual(rv.status_code, 404)

        REST Api: Test delete item not found
        
tests/test_api.py