Skip to content

Commit c7f2df1

Browse files
committedSep 19, 2015
test code added
1 parent 0bb9229 commit c7f2df1

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
 

‎design/tests.py

+11
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,17 @@ def test_2_2(self):
600600
expectResult = 20.0
601601
isTrue = expectResult - result < 0.0001
602602
self.assertTrue(isTrue,"calA")
603+
self.client = Client()
604+
self.lenResponse = self.client.get('/home/get?partname=BBa_B0010')
605+
self.lenResponse = self.client.get('/home/getChainList?id=1')
606+
self.lenResponse = self.client.get('/home/getProject?id=1')
607+
self.lenResponse = self.client.get('/home/getUserProject')
608+
609+
self.lenResponse = self.client.post('/home/changeProjectname', {'id':1, 'name':'new'})
610+
self.lenResponse = self.client.post('/home/changeTrack', {'id':1, 'track_id':1})
611+
self.lenResponse = self.client.post('/home/deleteProject', {'id':1, })
612+
self.lenResponse = self.client.get('/home/getTrackFunctions?track_id=1')
613+
self.lenResponse = self.client.get('/home/getResultImage?id=1')
603614

604615
#test calA0 from simulation.py
605616
def test_3_1(self):

‎system/tests.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def test_normal(self):
7171
self.gr.get_graph()
7272
class testSystemView(TestCase):
7373
def setUp(self):
74-
pass
74+
self.client = Client()
7575
def test_normal(self):
76-
pass
76+
self.client.post('/system/related',{'id':'C00002'})
77+
self.client.get('/system/getGene',{'id':'100008683'})
78+
self.client.get('/system/getCompound',{'id':'C00002'})

0 commit comments

Comments
 (0)
Please sign in to comment.