Update loader tests

This commit is contained in:
Eren Gölge 2021-12-07 12:58:55 +00:00
parent 6d9879bf66
commit b341951b78
1 changed files with 2 additions and 2 deletions

View File

@ -116,8 +116,8 @@ class TestTTSDataset(unittest.TestCase):
if self.ap.symmetric_norm: if self.ap.symmetric_norm:
self.assertLessEqual(mel_input.max(), self.ap.max_norm) self.assertLessEqual(mel_input.max(), self.ap.max_norm)
self.assertGreaterEqual( self.assertGreaterEqual(
mel_input.min(), -self.ap.max_norm mel_input.min(), -self.ap.max_norm # pylint: disable=invalid-unary-operand-type
) # pylint: disable=invalid-unary-operand-type )
self.assertLess(mel_input.min(), 0) self.assertLess(mel_input.min(), 0)
else: else:
self.assertLessEqual(mel_input.max(), self.ap.max_norm) self.assertLessEqual(mel_input.max(), self.ap.max_norm)