From 443a5f59d5c0f53de15b7def254a0162301fb22e Mon Sep 17 00:00:00 2001 From: xuwenyihust Date: Thu, 22 Aug 2024 22:02:28 +0800 Subject: [PATCH] Refactor test_spark_app_route.py to use spark_app_blueprint in server/tests/routes/test_spark_app_route.py --- server/tests/routes/test_spark_app_route.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/tests/routes/test_spark_app_route.py b/server/tests/routes/test_spark_app_route.py index 67f8ab4..0fd2d0f 100644 --- a/server/tests/routes/test_spark_app_route.py +++ b/server/tests/routes/test_spark_app_route.py @@ -4,7 +4,7 @@ from flask import g from database import db from run import create_app -from app.routes.notebook import notebook_blueprint +from app.routes.spark_app import spark_app_blueprint from app.routes.login import login_blueprint from app.services.directory import Directory from app.models.user import UserModel @@ -16,7 +16,7 @@ class SparkAppRouteTestCase(unittest.TestCase): def setUp(self): self.app = create_app() - self.app.register_blueprint(notebook_blueprint) + self.app.register_blueprint(spark_app_blueprint) self.app.register_blueprint(login_blueprint) self.client = self.app.test_client() with self.app.app_context():