From fbd1266bc5ed6c71dda030ef9313763c9039a376 Mon Sep 17 00:00:00 2001 From: Adam Jakab Date: Sat, 14 Mar 2020 21:30:22 +0100 Subject: [PATCH] simplified condition in test and added changelog entry --- docs/changelog.rst | 3 +++ test/test_autotag.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 7ef19871b..fca3e686f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -166,6 +166,9 @@ Fixes: * Added a warning when configuration files defined in the `include` directive of the configuration file fail to be imported. :bug:`3498` +* Added the normalize method to the dbcore.types.INTEGER class which now + properly returns integer values. + :bug:`762` and :bug:`3507` For plugin developers: diff --git a/test/test_autotag.py b/test/test_autotag.py index 5ab3c4b49..f8f329024 100644 --- a/test/test_autotag.py +++ b/test/test_autotag.py @@ -93,7 +93,7 @@ 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): + if isinstance(likelies[f], int): self.assertEqual(likelies[f], 0) else: self.assertEqual(likelies[f], '%s_1' % f)