Skip to content
Snippets Groups Projects
Commit 0b392866 authored by Mia Wang's avatar Mia Wang
Browse files

add test for webapp

parent 5abec585
No related branches found
No related tags found
No related merge requests found
......@@ -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
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
......
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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment