main redirect 308

This commit is contained in:
Auriane Lartigue 2022-01-14 11:41:23 +01:00
parent 22aa8e441e
commit 84048baecd

View file

@ -15,15 +15,15 @@ class UnitTest(unittest.TestCase):
def test_play(self):
NB_QUESTION = 9
for q in range(NB_QUESTION) :
rv = self.app.get('/play/TEST/'+str(q))
rv = self.app.get('/play/TEST/'+str(q)+'/')
self.assertEqual(rv.status, '200 OK')
def test_end(self):
rv = self.app.get('/end/TEST')
rv = self.app.get('/end/TEST/')
self.assertEqual(rv.status, '200 OK')
def test_lost(self):
rv = self.app.get('/lost/TEST')
rv = self.app.get('/lost/TEST/')
self.assertEqual(rv.status,'200 OK')
if __name__ == '__main__':