Browse Source

main redirect 308

Auriane Lartigue 2 years ago
parent
commit
84048baecd
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      main/Dockerfiles/app/App/app/test.py

+ 3
- 3
main/Dockerfiles/app/App/app/test.py View File

@@ -15,15 +15,15 @@ class UnitTest(unittest.TestCase):
15 15
 	def test_play(self):
16 16
 		NB_QUESTION = 9
17 17
 		for q in range(NB_QUESTION) :
18
-			rv = self.app.get('/play/TEST/'+str(q))
18
+			rv = self.app.get('/play/TEST/'+str(q)+'/')
19 19
 			self.assertEqual(rv.status, '200 OK')
20 20
 
21 21
 	def test_end(self):
22
-		rv = self.app.get('/end/TEST')
22
+		rv = self.app.get('/end/TEST/')
23 23
 		self.assertEqual(rv.status, '200 OK')
24 24
 
25 25
 	def test_lost(self):
26
-		rv = self.app.get('/lost/TEST')
26
+		rv = self.app.get('/lost/TEST/')
27 27
 		self.assertEqual(rv.status,'200 OK')
28 28
 
29 29
 if __name__ == '__main__':

Loading…
Cancel
Save