Browse Source

les resultats ne sont pas fixes

Auriane Lartigue 2 years ago
parent
commit
5ea9ce0af3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      update/Dockerfiles/app/app/test.py

+ 1
- 1
update/Dockerfiles/app/app/test.py View File

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

Loading…
Cancel
Save