Skip to content

Commit

Permalink
Refactor test_spark_app_route.py to use spark_app_blueprint in server…
Browse files Browse the repository at this point in the history
…/tests/routes/test_spark_app_route.py
  • Loading branch information
xuwenyihust committed Aug 22, 2024
1 parent 5e59130 commit 443a5f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/tests/routes/test_spark_app_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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():
Expand Down

0 comments on commit 443a5f5

Please sign in to comment.