From 5ea9ce0af36cfc8edcf895bf015c88cb75846246 Mon Sep 17 00:00:00 2001 From: alartigu Date: Fri, 14 Jan 2022 13:09:55 +0100 Subject: [PATCH] les resultats ne sont pas fixes --- update/Dockerfiles/app/app/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update/Dockerfiles/app/app/test.py b/update/Dockerfiles/app/app/test.py index f5166d0..e8ffd44 100644 --- a/update/Dockerfiles/app/app/test.py +++ b/update/Dockerfiles/app/app/test.py @@ -11,7 +11,7 @@ class UnitTest(unittest.TestCase): def test_create(self): rv = self.app.get('/update/TEST/bald/1/') self.assertEqual(rv.status, '200 OK') - self.assertEqual(rv.data,b'19') + self.assertTrue(0 <= int(rv.data) <= 25) if __name__ == '__main__': unittest.main()