コード例 #1
0
ファイル: Scenes.py プロジェクト: Loremipsum1988/tinkervision
    def setUpClass(cls):
        cls.name = "Scenes"

        cls.mod_name1 = "downscale"
        cls.mod_name2 = "snapshot"

        cls.module1 = Helper.start_module(cls.mod_name1)
        cls.module2 = Helper.start_module(cls.mod_name2)

        print "[" + cls.name + "] Starting Tests."
        Helper.show_running_modules(cls.name)
コード例 #2
0
ファイル: Scenes.py プロジェクト: Loremipsum1988/tinkervision
    def setUpClass(cls):
        cls.name = "Scenes"

        cls.mod_name1 = "downscale"
        cls.mod_name2 = "snapshot"

        cls.module1 = Helper.start_module(cls.mod_name1)
        cls.module2 = Helper.start_module(cls.mod_name2)

        print "[" + cls.name + "] Starting Tests."
        Helper.show_running_modules(cls.name)
コード例 #3
0
ファイル: Module.py プロジェクト: Loremipsum1988/tinkervision
    def test_module_Remove(self):
        tmp_module = Helper.red.vision_module_start(self.mod_name)
        self.assertEqual(tmp_module.result, TVE.TV_OK)
        # def vision_libs_loaded_count(self): # shows module loaded count! should be 2 here
        tmp = Helper.red.vision_libs_loaded_count()
        self.assertEqual(tmp.result, TVE.TV_OK)
        self.assertEqual(tmp.count, 2)
        # def vision_module_remove(self, id): # remove the new module
        Helper.show_running_modules(self.name)
        self.assertEqual(Helper.red.vision_module_remove(tmp_module.id), TVE.TV_OK)
        import time
        time.sleep(5)
        tmp = Helper.red.vision_libs_loaded_count()
        self.assertEqual(tmp.result, TVE.TV_OK)
        self.assertEqual(tmp.count, 2)

        self.assertEqual(tmp.count, 1)
        Helper.show_running_modules(self.name)
コード例 #4
0
ファイル: Module.py プロジェクト: Loremipsum1988/tinkervision
    def test_module_Remove(self):
        tmp_module = Helper.red.vision_module_start(self.mod_name)
        self.assertEqual(tmp_module.result, TVE.TV_OK)
        # def vision_libs_loaded_count(self): # shows module loaded count! should be 2 here
        tmp = Helper.red.vision_libs_loaded_count()
        self.assertEqual(tmp.result, TVE.TV_OK)
        self.assertEqual(tmp.count, 2)
        # def vision_module_remove(self, id): # remove the new module
        Helper.show_running_modules(self.name)
        self.assertEqual(Helper.red.vision_module_remove(tmp_module.id),
                         TVE.TV_OK)
        import time
        time.sleep(5)
        tmp = Helper.red.vision_libs_loaded_count()
        self.assertEqual(tmp.result, TVE.TV_OK)
        self.assertEqual(tmp.count, 2)

        self.assertEqual(tmp.count, 1)
        Helper.show_running_modules(self.name)
コード例 #5
0
ファイル: Stream.py プロジェクト: Loremipsum1988/tinkervision
    def setUpClass(cls):
        cls.name = "stream"

        cls.module = Helper.start_module(cls.name)
        print "[" + cls.name + "] Starting Tests."
        Helper.show_running_modules(cls.name)
コード例 #6
0
ファイル: Stream.py プロジェクト: Loremipsum1988/tinkervision
 def tearDownClass(cls):
     Helper.kill_all_modules()
     Helper.show_running_modules(cls.name)
     print "[" + cls.name + "] Tests finished."
コード例 #7
0
 def setUpClass(cls):
     cls.name = "snapshot"
     cls.module = Helper.start_module(cls.name)
     print "[" + cls.name + "] Starting Tests."
     Helper.show_running_modules(cls.name)
コード例 #8
0
 def tearDownClass(cls):
     Helper.kill_all_modules()
     Helper.show_running_modules(cls.name)
     print "[" + cls.name + "] Tests finished."
コード例 #9
0
ファイル: Module.py プロジェクト: Loremipsum1988/tinkervision
 def setUpClass(cls):
     cls.name = "Module"
     cls.mod_name = "motiondetect"
     cls.module = Helper.start_module(cls.mod_name)
     print "[" + cls.name + "] Starting Tests."
     Helper.show_running_modules(cls.name)
コード例 #10
0
ファイル: _Dummy.py プロジェクト: Loremipsum1988/tinkervision
 def setUpClass(cls):
     cls.name = "NAMEHERE"  # Insert Name <---------------------------------------------------------------------------
     cls.module = Helper.start_module(cls.name)
     print "[" + cls.name + "] Starting Tests."
     Helper.show_running_modules(cls.name)
コード例 #11
0
ファイル: main.py プロジェクト: sunando94/Scrapper
 def __init__(self):
     self.__url__ = 'https://urllib3.readthedocs.io/en/latest/user-guide.html'
     self.__helper__ = helper.Helper()
コード例 #12
0
ファイル: _Dummy.py プロジェクト: Loremipsum1988/tinkervision
 def setUpClass(cls):
     cls.name = "NAMEHERE"  # Insert Name <---------------------------------------------------------------------------
     cls.module = Helper.start_module(cls.name)
     print "[" + cls.name + "] Starting Tests."
     Helper.show_running_modules(cls.name)
コード例 #13
0
ファイル: Module.py プロジェクト: Loremipsum1988/tinkervision
 def setUpClass(cls):
     cls.name = "Module"
     cls.mod_name = "motiondetect"
     cls.module = Helper.start_module(cls.mod_name)
     print "[" + cls.name + "] Starting Tests."
     Helper.show_running_modules(cls.name)