Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions chaco/shell/tests/test_tutorial_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@ def test_script(self):
plot(x, y, "r-")
title("First plot")
ytitle("sin(x)")

if __name__ == "__main__":
unittest.main()
4 changes: 0 additions & 4 deletions chaco/tests/test_border.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,3 @@ def test_draw_border_simple(self):

actual = gc.bmp_array[:,:,0]
self.assertRavelEqual(actual, desired)


if __name__ == "__main__":
unittest.main()
3 changes: 0 additions & 3 deletions chaco/tests/test_cmap_image_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,3 @@ def test_redraw_on_color_mapper_update(self):

# Then
window.redraw.assert_called_once_with()

if __name__ == "__main__":
unittest.main()
4 changes: 0 additions & 4 deletions chaco/tests/test_colormapped_scatterplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,3 @@ def test_colormap_updated(self):
""" If colormapper updated then we need to redraw """
self.color_mapper.updated = True
self.assertFalse(self.scatterplot.draw_valid)


if __name__ == "__main__":
unittest.main()
4 changes: 0 additions & 4 deletions chaco/tests/test_data_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,3 @@ def test_data_label_arrow_not_visible(self):
plot.outer_bounds = list(size)
gc = PlotGraphicsContext(size)
gc.render_component(plot)


if __name__ == "__main__":
unittest.main()
4 changes: 0 additions & 4 deletions chaco/tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,3 @@ def test_text_plot(self):
gc.render_component(plot)
actual = gc.bmp_array[:, :, :]
self.assertFalse(alltrue(actual == 255))


if __name__ == "__main__":
unittest.main()
4 changes: 0 additions & 4 deletions chaco/tests/test_scatterplot_renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,3 @@ def test_scatter_slow(self):
gc.render_component(scatterplot)
actual = gc.bmp_array[:, :, :]
self.assertFalse(alltrue(actual == 255))


if __name__ == "__main__":
unittest.main()
4 changes: 0 additions & 4 deletions chaco/tests/test_ticks.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,3 @@ def test_auto_interval_max_ticks(self):
num_ticks = int((data_high - data_low) / interval)
self.assertGreaterEqual(num_ticks, 3)
self.assertLessEqual(num_ticks, max_ticks)


if __name__ == "__main__":
unittest.main()
5 changes: 0 additions & 5 deletions chaco/tools/tests/test_range_zoom.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,3 @@ def test_rgba_background_range(self):

self.assertEqual(gc.set_fill_color.call_args,
mock.call([1.0, 0.0, 0.0, 0.3]))


if __name__ == '__main__':
from unittest import main
main()