Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetaRL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wang, Mia
MetaRL
Commits
0b392866
Commit
0b392866
authored
3 years ago
by
Mia Wang
Browse files
Options
Downloads
Patches
Plain Diff
add test for webapp
parent
5abec585
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
backend_react/react_app.py
+0
-4
0 additions, 4 deletions
backend_react/react_app.py
temp_util/parse_ds_cn_arch.py
+2
-2
2 additions, 2 deletions
temp_util/parse_ds_cn_arch.py
test/web_app/test_flask_routes.py
+6
-4
6 additions, 4 deletions
test/web_app/test_flask_routes.py
with
8 additions
and
10 deletions
backend_react/react_app.py
+
0
−
4
View file @
0b392866
...
...
@@ -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
This diff is collapsed.
Click to expand it.
temp_util/parse_ds_cn_arch.py
+
2
−
2
View file @
0b392866
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
...
...
This diff is collapsed.
Click to expand it.
test/web_app/test_
react_user_input
.py
→
test/web_app/test_
flask_routes
.py
+
6
−
4
View file @
0b392866
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
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment