Šī revīzija ir iekļauta:
Auriane Lartigue 2022-01-11 14:48:44 +01:00
vecāks be70fea80e
revīzija fd6fe7d852

Parādīt failu

@ -1,8 +1,10 @@
import unittest
class UnitTest(unittest.TestCase):
NB_QUESTION = 9
def setUp(self):
from app import app
import app
app = app.create_app()
app.testing = True
self.app = app.test_client()
@ -11,8 +13,9 @@ class UnitTest(unittest.TestCase):
self.assertEqual(rv.status, '200 OK')
def test_play(self):
rv = self.app.get('/play/TEST')
self.assertEqual(rv.status, '200 OK')
for q in range(NB_QUESTION) :
rv = self.app.get('/play/TEST/'+str(q))
self.assertEqual(rv.status, '200 OK')
def test_end(self):
rv = self.app.get('/end/TEST')