Commit 8d3744fd authored by Andrea Lorenzon's avatar Andrea Lorenzon 💬
Browse files

fixed test units

parent 837c500e
Pipeline #1572 failed with stages
in 11 seconds
import unittest
from app import app
class test_extraction(unittest.TestCase):
......@@ -18,9 +17,10 @@ class test_extraction(unittest.TestCase):
self.assertEqual(str(type(ds)), "<class 'numpy.ndarray'>")
self.assertEqual(str(type(ds1)), "<class 'numpy.ndarray'>")
self.assertEqual(arr.shape, (1000,1000))
self.assertEqual(arr.shape, (1000, 1000))
self.assertEqual(arr1.shape, (2, 600, 600))
class test_plotting(unittest.TestCase):
def test_plot(self):
from modules.h5ceric import extract_dataset, plot_dispatcher
......@@ -33,6 +33,7 @@ class test_plotting(unittest.TestCase):
self.assertEqual(str(type(ds)), "<class 'numpy.ndarray'>")
self.assertEqual(str(type(p)), "<class 'bokeh.plotting.figure.Figure'>")
# test missing file case
class test_Assertions(unittest.TestCase):
def test_filenoutfound(self):
......@@ -45,4 +46,3 @@ class test_Assertions(unittest.TestCase):
if __name__ == '__main__':
unittest.main()
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