diff --git a/backend_react/react_app.py b/backend_react/react_app.py index 96da69473fac69057f23cb7e4c1d8df01866e67d..dea4b61729aad5bddb85752d6a4c918d9d70f83b 100644 --- a/backend_react/react_app.py +++ b/backend_react/react_app.py @@ -161,10 +161,6 @@ def show_result(): -@app.route('/api') -def index(): - return {'status': 'api test'} - if __name__ == '__main__': app.run(debug=False, use_reloader=False) \ No newline at end of file diff --git a/temp_util/parse_ds_cn_arch.py b/temp_util/parse_ds_cn_arch.py index 76d33c195ca53a6e05d9d4d144788cd2f691cfc9..b8a5f7d5ca82cf4734bc2ff7d851496aead8dca1 100644 --- a/temp_util/parse_ds_cn_arch.py +++ b/temp_util/parse_ds_cn_arch.py @@ -1,5 +1,5 @@ -from ..MetaAugment.child_networks import * -from ..MetaAugment.main import create_toy, train_child_network +from MetaAugment.child_networks import * +from MetaAugment.main import create_toy, train_child_network import torch import torchvision import torchvision.datasets as datasets diff --git a/test/web_app/test_react_user_input.py b/test/web_app/test_flask_routes.py similarity index 64% rename from test/web_app/test_react_user_input.py rename to test/web_app/test_flask_routes.py index 1f6ac8e9686b68aad058d503bb6dad115e9c23be..f3dac791abd53b9316a8fa4ad087b2ae5eca43cc 100644 --- a/test/web_app/test_react_user_input.py +++ b/test/web_app/test_flask_routes.py @@ -1,8 +1,7 @@ import pytest import unittest -import os -import sys from backend_react import react_app +import json @@ -13,5 +12,8 @@ class MyTestCase(unittest.TestCase): self.app = react_app.app.test_client() def test_home(self): - result = self.app.get('/') - # Make your assertions \ No newline at end of file + response = self.app.get('/home') + + def test_training(self): + response = self.app.get('/training') +