diff --git a/flask_mvp/auto_augmentation/__init__.py b/flask_mvp/auto_augmentation/__init__.py index 72634111728ad96c69734e682ef37bae7c112a75..cd76980e5f2ddcc481c8e0472a0e14b49ffd343c 100644 --- a/flask_mvp/auto_augmentation/__init__.py +++ b/flask_mvp/auto_augmentation/__init__.py @@ -2,8 +2,9 @@ import os from flask import Flask, render_template, request, flash -from auto_augmentation import home, progress,result -from flask_mvp.auto_augmentation import training +from . import home, progress,result +from . import training + def create_app(test_config=None): # create and configure the app @@ -22,7 +23,7 @@ def create_app(test_config=None): # ensure the instance folder exists os.makedirs(app.instance_path, exist_ok=True) - from auto_augmentation import download_file + from . import download_file app.register_blueprint(home.bp) app.register_blueprint(progress.bp) diff --git a/test/web_app/test_react_user_input.py b/test/web_app/test_react_user_input.py new file mode 100644 index 0000000000000000000000000000000000000000..1f6ac8e9686b68aad058d503bb6dad115e9c23be --- /dev/null +++ b/test/web_app/test_react_user_input.py @@ -0,0 +1,17 @@ +import pytest +import unittest +import os +import sys +from backend_react import react_app + + + +class MyTestCase(unittest.TestCase): + + def setUp(self): + react_app.app.testing = True + self.app = react_app.app.test_client() + + def test_home(self): + result = self.app.get('/') + # Make your assertions \ No newline at end of file