Failed Conditions
Pull Request — master (#1182)
by Lasse
03:16 queued 01:34
created

coalib.tests.output.printers.skip_test()   A

Complexity

Conditions 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 2
dl 0
loc 6
rs 9.4286
1
import subprocess
0 ignored issues
show
Unused Code introduced by
The import subprocess seems to be unused.
Loading history...
2
import sys
3
from shutil import which
4
from unittest.case import skipIf
5
6
sys.path.insert(0, ".")
7
from coalib.output.printers.EspeakPrinter import EspeakPrinter
8
import unittest
9
10
11
@skipIf(which('espeak') is None, 'eSpeak is not installed.')
12
class EspeakPrinterTest(unittest.TestCase):
13
    def test_voice_printer(self):
14
        self.uut = EspeakPrinter()
15
        self.uut.print("The", "espeak", "printer", "works!")
16
        self.uut.close()
17
18
19
if __name__ == '__main__':
20
    unittest.main(verbosity=2)
21