Skip to content

Commit 8393cae

Browse files
author
Benjamin Moody
committed
tests.test_plot: allow running module standalone.
This allows the module to be invoked using 'python3 -m tests.test_plot'.
1 parent 4f3f1e1 commit 8393cae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_plot.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ def test_create_figure_multiple_subplots(self):
4343
assert fig is not None
4444
assert axes is not None
4545
assert len(axes) == n_subplots
46+
47+
48+
if __name__ == "__main__":
49+
unittest.main()

0 commit comments

Comments
 (0)