Skip to content

Commit

Permalink
Add a test for #2838
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed May 9, 2018
1 parent 58e664e commit ff397a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions quodlibet/tests/test_formats__id3.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,13 @@ def test_optional_POPM_count(self):
else:
self.KIND(self.filename)

def test_write_empty_replaygain_track_gain(self):
f = self.KIND(self.filename)
f["replaygain_track_gain"] = ""
f.write()
f.reload()
assert f.replay_gain(["track"]) == 1.0

def test_TXXX_DATE(self):
# https://github.com/quodlibet/quodlibet/issues/220
f = mutagen.File(self.filename)
Expand Down

0 comments on commit ff397a3

Please sign in to comment.