Skip to content

Commit

Permalink
update baseline images
Browse files Browse the repository at this point in the history
  • Loading branch information
Jellevanderwerff committed Dec 13, 2024
1 parent 37db0eb commit 5354bba
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
Binary file modified tests/baseline/test_lilypond_package.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline/test_melody_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/baseline/test_note_ties.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/baseline/test_note_ties2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions tests/test_rhythm.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ def test_rhythm_plot():
return fig


@pytest.custom_mpl_image_compare(tolerance=2)
def test_note_ties():
r1 = thebeat.music.Rhythm.from_fractions([1/4, 2, 3/4], beat_ms=500, time_signature=(4, 4))
fig, ax = r1.plot_rhythm(suppress_display=True)
return fig


@pytest.custom_mpl_image_compare(tolerance=2)
def test_note_ties2():
r2 = thebeat.music.Rhythm.from_fractions([1/16, 1/16, 1/16, 5/16, 5/16, 1/16, 1/16, 1/16], beat_ms=500, time_signature=(4, 4))
fig, ax = r2.plot_rhythm(suppress_display=True)
return fig


def test_copy():
r = thebeat.music.Rhythm([500, 500, 500, 500], name="test")
r2 = r.copy()
Expand Down

0 comments on commit 5354bba

Please sign in to comment.