les resultats ne sont pas fixes
This commit is contained in:
parent
07f25ee359
commit
5ea9ce0af3
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue