Browse Source

[Doc] add setup

monf 8 năm trước cách đây
mục cha
commit
950c273848

+ 3 - 0
core/Tests/test_order_analyser.py

@@ -11,6 +11,9 @@ class TestOrderAnalyser(unittest.TestCase):
 
     """Test case for the OrderAnalyser Class"""
 
+    def setUp(self):
+        pass
+
     def test_is_containing_bracket(self):
         #  Success
         order_to_test = "This test contains {{ bracket }}"

+ 1 - 0
core/Tests/test_settings_loader.py

@@ -12,6 +12,7 @@ from core.Models.Tts import Tts
 class TestSettingLoader(unittest.TestCase):
 
     def setUp(self):
+
         self.settings_file_to_test = "core/Tests/settings/settings_test.yml"
 
         self.settings_dict = {

+ 3 - 0
core/Tests/test_yaml_loader.py

@@ -8,6 +8,9 @@ class TestYAMLLoader(unittest.TestCase):
     Class to test YAMLLoader
     """
 
+    def setUp(self):
+        pass
+
     def test_get_config(self):
 
         valid_file_path_to_test = "core/Tests/brains/brain_test.yml"

+ 0 - 5
trigger/snowboy/snowboydecoder.py

@@ -4,13 +4,8 @@ import collections
 from threading import Thread
 
 import pyaudio
-import sys
-
-import signal
-
 import snowboydetect
 import time
-import wave
 import os
 import logging