Esempio n. 1
0
 def __init__(self):
     self.c = modoscrape.Config()
     self.t = modoscrape.tools.Tools
Esempio n. 2
0
 def __init__(self):
     self.c = modoscrape.Config()
     self.t = modoscrape.tools.Tools
     self.t.showDisabled = True
     self.create_debug = False
Esempio n. 3
0
import unittest
import modoscrape
import modoscrape.tools
import modoscrape.locators
import modoscrape.chatbot
import numpy as np
import cv2
import cProfile

c = modoscrape.Config()
tools = modoscrape.tools.Tools()
dl = modoscrape.locators.DialogueLocator()
loc6 = modoscrape.locators.Locator6()
pl = modoscrape.locators.PopupLocator()
sbl = modoscrape.locators.SideboardingLocator()

modoscrape.tools.showDisabled = True

class TestPopupLocator(unittest.TestCase):

    def test_screen42(self):
        modoscrape.tools.showDisabled = True
        bgr = cv2.imread('img/screen42.PNG')
        option_centroids = pl.locate(bgr)
        self.assertEqual(len(option_centroids), 7, 'unexpected amount of matches ' + str(len(option_centroids)) )


class TestSideboardingLocator(unittest.TestCase):

    def test_screen37(self):
        modoscrape.tools.showDisabled = True