mirror of
https://github.com/wassname/TTS.git
synced 2026-09-11 12:00:24 +08:00
style and linter fixes
This commit is contained in:
@@ -35,8 +35,8 @@ class SynthesizerTest(unittest.TestCase):
|
||||
def test_split_into_sentences(self):
|
||||
"""Check demo server sentences split as expected"""
|
||||
print("\n > Testing demo server sentence splitting")
|
||||
# pylint: disable=attribute-defined-outside-init
|
||||
self.seg = Synthesizer.get_segmenter("en")
|
||||
# pylint: disable=attribute-defined-outside-init, protected-access
|
||||
self.seg = Synthesizer._get_segmenter("en")
|
||||
sis = Synthesizer.split_into_sentences
|
||||
assert sis(self, "Hello. Two sentences") == ["Hello.", "Two sentences"]
|
||||
assert sis(self, "He went to meet the adviser from Scott, Waltman & Co. next morning.") == [
|
||||
|
||||
Reference in New Issue
Block a user