def METHOD_NAME(self):
    with self.create_app().app_context():
        dashboard = self.insert_dashboard_created_by("admin")
        yield dashboard
        db.session.delete(dashboard)
        db.session.commit()