Skip to content
Snippets Groups Projects

Fix TagPlot tests because positional argument was at wrong position.

Merged Hock, Martin requested to merge publish into publish-ci-cd
4 files
+ 11
11
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 9
9
@@ -42,31 +42,31 @@ class TestTagPlot(unittest.TestCase):
with self.assertRaises(TypeError):
TagPlot('fig', ProjectID, plot_engine, method)
with self.assertRaises(TypeError):
TagPlot(figs=fig1, prefix=ProjectID, engine=plot_engine)
TagPlot(fig1, plot_engine, prefix=ProjectID)
def test_prefix(self):
with self.assertRaises(TypeError):
TagPlot(fig, 3, plot_engine, method)
TagPlot(fig, plot_engine, 3, method)
def test_plotengine(self):
with self.assertRaises(ValueError):
TagPlot(fig, ProjectID, 1, method)
TagPlot(fig, 1, ProjectID, method)
with self.assertRaises(ValueError):
TagPlot(fig, ProjectID, 'xyz', method)
TagPlot(fig, 'xyz', ProjectID, method)
def test_idmethod(self):
with self.assertRaises(TypeError):
TagPlot(fig, ProjectID, plot_engine, method='(0,1)')
TagPlot(fig, plot_engine, ProjectID, method='(0,1)')
with self.assertRaises(TypeError):
TagPlot(fig, ProjectID, plot_engine, method='h')
TagPlot(fig, plot_engine, ProjectID, method='h')
with self.assertRaises(TypeError):
TagPlot(fig, ProjectID, plot_engine, method='[0,1]')
TagPlot(fig, plot_engine, ProjectID, method='[0,1]')
def test_location(self):
with self.assertRaises(TypeError):
TagPlot(fig, ProjectID, plot_engine, method, location=1)
TagPlot(fig, plot_engine, ProjectID, method, location=1)
with self.assertWarns(Warning):
TagPlot(fig, ProjectID, plot_engine, method, location='up')
TagPlot(fig, plot_engine, ProjectID, method, location='up')
if __name__ == '__main__':
Loading