|
64 | 64 |
|
65 | 65 | def test_fnames(): |
66 | 66 |
|
67 | | - bashplot.get_args(opt={"infile": test_txt})["infile"] == test_txt |
| 67 | + assert bashplot.get_args(opt={"infile": test_txt})["infile"] == test_txt |
68 | 68 |
|
69 | 69 |
|
70 | 70 | def test_options_scatter(): |
71 | | - bashplot.get_args(opt={"scatter": True})["scatter"] == True |
| 71 | + assert bashplot.get_args(opt={"scatter": True})["scatter"] == True |
72 | 72 |
|
73 | 73 |
|
74 | 74 | def test_options_color(): |
75 | | - bashplot.get_args(opt={"color": True})["color"] == True |
| 75 | + assert bashplot.get_args(opt={"color": True})["color"] == True |
76 | 76 |
|
77 | 77 |
|
78 | 78 | def test_options_legend(): |
79 | | - bashplot.get_args(opt={"legend": False})["legend"] == False |
| 79 | + assert bashplot.get_args(opt={"legend": False})["legend"] == False |
80 | 80 |
|
81 | 81 |
|
82 | 82 | def test_options_version(): |
83 | | - bashplot.get_args(opt={"version": True})["version"] == True |
| 83 | + assert bashplot.get_args(opt={"version": True})["version"] == True |
84 | 84 |
|
85 | 85 |
|
86 | 86 | def test_xlimits(): |
87 | | - bashplot.get_args(opt={"x_limits": [0.0, 20.0]})["x_limits"] == [0.0, 20.0] |
| 87 | + assert bashplot.get_args(opt={"x_limits": [0.0, 20.0]})["x_limits"] == [0.0, 20.0] |
88 | 88 |
|
89 | 89 |
|
90 | 90 | def test_ylimits(): |
91 | | - bashplot.get_args(opt={"y_limits": [0.0, 20.0]})["y_limits"] == [0.0, 20.0] |
| 91 | + assert bashplot.get_args(opt={"y_limits": [0.0, 20.0]})["y_limits"] == [0.0, 20.0] |
92 | 92 |
|
93 | 93 |
|
94 | 94 | def test_size(): |
95 | | - bashplot.get_args(opt={"size": [60, 60]})["size"] == [60, 60] |
| 95 | + assert bashplot.get_args(opt={"size": [60, 60]})["size"] == [60, 60] |
96 | 96 |
|
97 | 97 |
|
98 | 98 | def test_ranges_default(): |
99 | | - bashplot.get_args()["size"] == [60, 40] |
| 99 | + assert bashplot.get_args()["size"] == [60, 40] |
100 | 100 |
|
101 | 101 |
|
102 | 102 | def test_usecols(): |
103 | | - bashplot.get_args(opt={"usecols": [0, 2, 5]})["usecols"] == [0, 2, 5] |
| 103 | + assert bashplot.get_args(opt={"usecols": [0, 2, 5]})["usecols"] == [0, 2, 5] |
104 | 104 |
|
105 | 105 |
|
106 | 106 | @mock.patch("bashplot.bashplot.bashplot") |
|
0 commit comments