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()
Exemple #2
0
 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')
Exemple #3
0
 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)
Exemple #4
0
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()
Exemple #5
0
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()
Exemple #6
0
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"
        )
Exemple #8
0
 def setUp(self):
     qi = ASM.getMock(ASM.ASMenum.QI)()
     self._controller = Controller(qi)
Exemple #9
0
 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)
Exemple #11
0
 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)
Exemple #13
0
 def __init__(self, iface):
     """ Initialise the Controller  """
     self.iface = iface
     self.controller = Controller(iface)
 def setUp(self):
     qi = ASM.getMock(ASM.ASMenum.QI)()
     self._controller = Controller(qi)