Skip to content

Commit c8f6986

Browse files
committed
add some tests and generate images
1 parent bf824ab commit c8f6986

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

46.2 KB
Loading
57.6 KB
Loading
57.6 KB
Loading

nbs/tests/test_07_delta-delta_plots.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,16 @@ def test_58_delta_axes_invert_ylim():
152152
def test_59_delta_axes_invert_ylim_not_showing_delta2():
153153
return unpaired.mean_diff.plot(delta2_ylim=(2, -2),
154154
delta2_label="More negative is better!",
155-
show_delta2=False);
155+
show_delta2=False);
156+
157+
@pytest.mark.mpl_image_compare(tolerance=10)
158+
def test_71_unpaired_delta_g():
159+
return unpaired.delta_g.plot();
160+
161+
@pytest.mark.mpl_image_compare(tolerance=10)
162+
def test_72_sequential_delta_g():
163+
return sequential.mean_diff.plot();
164+
165+
@pytest.mark.mpl_image_compare(tolerance=10)
166+
def test_73_baseline_delta_g():
167+
return baseline.mean_diff.plot();

0 commit comments

Comments
 (0)