Esempio n. 1
0
def test_options_legend():
    assert bashplot.get_args(opt={"legend": False})["legend"] is False
Esempio n. 2
0
def test_options_version():
    assert bashplot.get_args(opt={"version": True})["version"] is True
Esempio n. 3
0
def test_options_scatter():
    assert bashplot.get_args(opt={"scatter": True})["scatter"] is True
Esempio n. 4
0
def test_options_color():
    assert bashplot.get_args(opt={"color": True})["color"] is True
Esempio n. 5
0
def test_fnames():
    assert bashplot.get_args(opt={"infile": test_txt})["infile"] == test_txt
Esempio n. 6
0
def test_usecols():
    assert bashplot.get_args(opt={"usecols": [0, 2, 5]})["usecols"] == [
        0, 2, 5
    ]
Esempio n. 7
0
def test_ranges_default():
    assert bashplot.get_args()["size"] == [60, 40]
Esempio n. 8
0
def test_size():
    assert bashplot.get_args(opt={"size": [60, 60]})["size"] == [60, 60]
Esempio n. 9
0
def test_ylimits():
    assert bashplot.get_args(opt={"y_limits": [0.0, 20.0]})["y_limits"] == [
        0.0, 20.0
    ]