corrected test to account for `year` and `disctotal` field now being treated as `types.INTEGER`
@@ -21,6 +21,8 @@ import re
import copy
import unittest
+from beets.dbcore.types import Integer, PaddedInt
+
from test import _common
from beets import autotag
from beets.autotag import match
@@ -91,6 +93,9 @@ class PluralityTest(_common.TestCase):
for i in range(5)]
likelies, _ = match.current_metadata(items)
for f in fields:
+ if type(items[0]._fields[f]) in (Integer, PaddedInt):
+ self.assertEqual(likelies[f], 0)
+ else:
self.assertEqual(likelies[f], '%s_1' % f)
