def setUpClass(cls):      
     cls.explorer = OpenGeoExplorer(singletab = True)  
     cls.cat = Catalog("http://localhost:8080/geoserver/rest", "admin", "geoserver")
     utils.populateCatalog(cls.cat)
     cls.catalogItem = GsCatalogItem(cls.cat, "catalog", "")
     cls.explorer.explorerWidget.gsItem.addChild(cls.catalogItem)
     cls.catalogItem.populate()                                
     cls.tree = cls.explorer.explorerWidget.tree
Esempio n. 2
0
 def setUpClass(cls):
     cls.explorer = OpenGeoExplorer(singletab=True)
     cls.cat = Catalog("http://localhost:8080/geoserver/rest", "admin",
                       "geoserver")
     utils.populateCatalog(cls.cat)
     cls.catalogItem = GsCatalogItem(cls.cat, "catalog", "")
     cls.explorer.explorerWidget.gsItem.addChild(cls.catalogItem)
     cls.catalogItem.populate()
     cls.tree = cls.explorer.explorerWidget.tree
 def setUpClass(cls):
     cls.explorer = OpenGeoExplorer(singletab = True)
     cls.cat = utils.getGeoServerCatalog().catalog
     utils.populateCatalog(cls.cat)
     cls.catalogItem = GsCatalogItem(cls.cat, "catalog", "")
     cls.explorer.explorerWidget.gsItem.addChild(cls.catalogItem)
     cls.catalogItem.populate()
     cls.tree = cls.explorer.explorerWidget.tree
     cls.conn = utils.getPostgresConnection()
     cls.pgItem = PgConnectionItem(cls.conn)
     cls.explorer.explorerWidget.pgItem.addChild(cls.pgItem)
     # @TODO - make tests pass using importer
     cls.useRestApi = QSettings().setValue("/OpenGeo/Settings/GeoServer/UseRestApi", True)
 def setUpClass(cls):
     cls.explorer = OpenGeoExplorer(singletab=True)
     cls.cat = utils.getGeoServerCatalog().catalog
     utils.populateCatalog(cls.cat)
     cls.catalogItem = GsCatalogItem(cls.cat, "catalog", "")
     cls.explorer.explorerWidget.gsItem.addChild(cls.catalogItem)
     cls.catalogItem.populate()
     cls.tree = cls.explorer.explorerWidget.tree
     cls.conn = utils.getPostgresConnection()
     cls.pgItem = PgConnectionItem(cls.conn)
     cls.explorer.explorerWidget.pgItem.addChild(cls.pgItem)
     # @TODO - make tests pass using importer
     cls.useRestApi = QSettings().setValue(
         "/OpenGeo/Settings/GeoServer/UseRestApi", True)