Commit bcccd881 authored by Yori Fournier's avatar Yori Fournier
Browse files

Now all tests are passing.

parent 8019259c
Pipeline #488 failed with stage
in 7 minutes and 27 seconds
......@@ -64,7 +64,7 @@ class AxTest(MplAxes):
return(True)
# FORMATTING -------------------------------------------------------
def formatRawData(self, rawdata):
def format_rawdata(self, rawdata):
# give value to data a dict
# with xdata, ydata1, zdata, ydata2 ...
......
......@@ -36,9 +36,9 @@ class FigTestWithAliases(MplFig):
self.add_axes(AxTest(self, frame=frame1), "p1")
self.add_axes(AxTest(self, frame=frame2), "p2")
def declareAliases(self):
def declare_aliases(self):
self.aliases.update({'xRange_p1': (self.axes[0], 'xRange'),
'yRange_p1': (self.axes[0], 'yRange'),
'xRange_p2': (self.axes[1], 'xRange'),
'yRange_p2': (self.axes[1], 'yRange')})
self.aliases.update({'x_range_p1': (self.axes[0], 'x_range'),
'y_range_p1': (self.axes[0], 'y_range'),
'x_range_p2': (self.axes[1], 'x_range'),
'y_range_p2': (self.axes[1], 'y_range')})
......@@ -110,7 +110,7 @@ class TestMyFig(unittest.TestCase):
Test that the keyword xRange given to the constructor is passed to the
axes.
'''
fig = FigTest((self.data1,), x_range=[-1., 1.])
fig = FigTest((self.data_1,), x_range=[-1., 1.])
# test axes attributes
self.assertEqual(fig.axes[0].keywords['x_range'], [-1., 1.])
......@@ -183,7 +183,7 @@ class TestMyFig(unittest.TestCase):
def test_update_rawdata(self):
'''Verify that the special keyword rawdata is well passed
'''
fig = FigTest((self.data1,))
fig = FigTest((self.data_1,))
fig.update(rawdata=(self.data_2,))
self.assertTrue(fig.formatted)
self.assertEqual(fig.rawdata, (self.data_2,))
......@@ -200,7 +200,7 @@ class TestMyFig(unittest.TestCase):
'''
fig = EmptyFig(())
dynamic_axes = AxWithKeywords(fig)
fig.add_axes(dynamicAxes, "dynamic_plot")
fig.add_axes(dynamic_axes, "dynamic_plot")
self.assertEqual(len(fig.axes), 1)
self.assertEqual(fig.axes[0], dynamic_axes)
......
Supports Markdown
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