Commit a81baf75 authored by Kirill Smelkov's avatar Kirill Smelkov

erp5_wendelin/test/test_01_IngestionFromFluentd: Verify resulting array in full explicitly

Instead of verifying only min/max/len of the result, we can verify that the
result is explicitly the array we expect, especially that it is easier to do
and less lines with just appropriate arange() and array_equal().

/cc @Tyagov
parent 40acb891
...@@ -149,11 +149,8 @@ class Test(ERP5TypeTestCase): ...@@ -149,11 +149,8 @@ class Test(ERP5TypeTestCase):
np.average(zarray) np.average(zarray)
# test that extracted array contains same values as input CSV # test that extracted array contains same values as input CSV
self.assertNotEqual(None, zarray) self.assertTrue(np.array_equal(zarray, np.arange(100001)))
self.assertEqual(100000.0, np.amax(zarray, axis=0))
self.assertEqual(0.0, np.amin(zarray, axis=0))
self.assertEqual((100001,), zarray.shape)
def test_02_Examples(self): def test_02_Examples(self):
""" """
Test we can use python scientific libraries by using directly created Test we can use python scientific libraries by using directly created
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment