Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Fix typo in mimic test case
Browse files Browse the repository at this point in the history
An underscore instead of a . made the subprocess check output always
pass.
  • Loading branch information
forslund committed May 11, 2020
1 parent 1ee8ec0 commit 39986a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unittests/tts/test_mimic_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def test_get_tts(self, mock_subprocess, _, mock_device_api):
m = Mimic('en-US', {})
wav, phonemes = m.get_tts('hello', 'abc.wav')
self.assertEqual(phonemes, mock_subprocess.check_output().decode())
mock_subprocess.check_output_called_with(m.args + ['-o', 'abc.wav',
'-t', 'hello'])
mock_subprocess.check_output.assert_called_once_with(
m.args + ['-o', 'abc.wav', '-t', 'hello'])

def test_viseme(self, _, mock_device_api):
mock_device_api.return_value = device_instance_mock
Expand Down

0 comments on commit 39986a4

Please sign in to comment.