diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-06 17:12:46 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-06 17:12:46 +0200 |
| commit | 735069a6d692b704393aa0b4e042678f29f56c6e (patch) | |
| tree | 1da4a5504fd10f0d3013a736bc7d6c1b2ea8d2c0 | |
| parent | 93839394797d6f8d16967f875b189fb67a95aea3 (diff) | |
| download | jasper-client-735069a6d692b704393aa0b4e042678f29f56c6e.tar.gz jasper-client-735069a6d692b704393aa0b4e042678f29f56c6e.zip | |
Use assertIn in TestMic unittests
| -rw-r--r-- | client/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/test.py b/client/test.py index 6eaaa5a..d9ca8f5 100644 --- a/client/test.py +++ b/client/test.py @@ -75,7 +75,7 @@ class TestMic(unittest.TestCase): with open(self.jasper_clip, mode="rb") as f: transcription = self.stt.transcribe(f, mode=TranscriptionMode.KEYWORD) - self.assertTrue("JASPER" in transcription) + self.assertIn("JASPER", transcription) def testTranscribe(self): """ @@ -83,7 +83,7 @@ class TestMic(unittest.TestCase): """ with open(self.time_clip, mode="rb") as f: transcription = self.stt.transcribe(f) - self.assertTrue("TIME" in transcription) + self.assertIn("TIME", transcription) class TestG2P(unittest.TestCase): |
