test: test_data and test_append

This commit is contained in:
stalbe_j
2023-01-27 15:48:27 +01:00
parent aedeb22884
commit d3a9fd736c

View File

@ -30,3 +30,15 @@ def test_plot_derscription_init(plot_name, plot_title, plot_xlabel, plot_ylabel,
assert pd.xs == xs
assert pd.ys == ys
def test_data():
pd = PlotDescription('name', xs = [1,2], ys = [3,4])
assert pd.data == ([1,2], [3,4])
def test_append():
pd = PlotDescription('name', xs = [1,2], ys = [3,4])
pd.append([3,5])
assert pd.xs == [1,2,3]
assert pd.ys == [3,4,5]