les resultats ne sont pas fixes

This commit is contained in:
Auriane Lartigue 2022-01-14 13:09:55 +01:00
parent 07f25ee359
commit 5ea9ce0af3

View file

@ -11,7 +11,7 @@ class UnitTest(unittest.TestCase):
def test_create(self): def test_create(self):
rv = self.app.get('/update/TEST/bald/1/') rv = self.app.get('/update/TEST/bald/1/')
self.assertEqual(rv.status, '200 OK') self.assertEqual(rv.status, '200 OK')
self.assertEqual(rv.data,b'19') self.assertTrue(0 <= int(rv.data) <= 25)
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()