class Plugin(object): def __init__(self, iface): self.iface = iface self.controller = Controller(iface) def initGui(self): self.controller.initGui() def unload(self): self.controller.unload()
def test20_layerManagerTest(self): #assertIsNotNone added in 3.1 testlog.debug('Test_0.20 LayerManager instantiation test') qi = ASM.getMock(ASM.ASMenum.QI)() controller = Controller(qi) layermanager = LayerManager(qi,controller) self.assertNotEqual(layermanager,None,'LayerManager not instantiated')
def setUp(self): testlog.debug('Instantiate null address, address.setter list') #self.QI = QgisInterface(_Dummy_Canvas()) qi = ASM.getMock(ASM.ASMenum.QI)() controller = Controller(qi) self._layermanager = LayerManager(qi,controller) self._layermanager.addressLayerAdded = ASM.getMock(ASM.ASMenum.SIGNAL)() Database.setup(DCONF)
class Plugin(object): ''' Initiate the AIMS plugin''' SettingsBase="QGIS-AIMS-Plugin/" def __init__(self, iface): """ Initialise the Controller """ self.iface = iface self.controller = Controller(iface) def initGui(self): ''' Set up the Plugin's GUI ''' self.controller.initGui() def unload(self): ''' Remove the plugins UI components ''' self.controller.unload()
class Plugin(object): ''' Initiate the AIMS plugin''' SettingsBase = "QGIS-AIMS-Plugin/" def __init__(self, iface): """ Initialise the Controller """ self.iface = iface self.controller = Controller(iface) def initGui(self): ''' Set up the Plugin's GUI ''' self.controller.initGui() def unload(self): ''' Remove the plugins UI components ''' self.controller.unload()
class Test_1_ControllerTestSetupFunction(unittest.TestCase): def setUp(self): qi = ASM.getMock(ASM.ASMenum.QI)() self._controller = Controller(qi) def tearDown(self): self._controller = None def test10_initControllerAddress(self): testlog.debug('Test_1.10 Controller/Address instantiation test') self.assertEqual( isinstance(self._controller.initialiseAddressObj(), Address), True, 'Cannot init Controller.Address')
class Test_1_ControllerTestSetupFunction(unittest.TestCase): def setUp(self): qi = ASM.getMock(ASM.ASMenum.QI)() self._controller = Controller(qi) def tearDown(self): self._controller = None def test10_initControllerAddress(self): testlog.debug("Test_1.10 Controller/Address instantiation test") self.assertEqual( isinstance(self._controller.initialiseAddressObj(), Address), True, "Cannot init Controller.Address" )
def setUp(self): qi = ASM.getMock(ASM.ASMenum.QI)() self._controller = Controller(qi)
def test20_controllerTest(self): #assertIsNotNone added in 3.1 testlog.debug('Test_0.20 Controller instantiation test') qi = ASM.getMock(ASM.ASMenum.QI)() controller = Controller(qi) self.assertNotEqual(controller, None, 'Controller not instantiated')
def __init__(self, iface): """ Initialise the Controller """ self.iface = iface ACD.setIface(self.iface) self.controller = Controller(iface, ACD)
def __init__(self, iface): """ Initialise the Controller """ self.iface = iface self.controller = Controller(iface)
def __init__(self, iface): self.iface = iface self.controller = Controller(iface)