def setUpClass(cls): ''' 'test' workspace cannot exist in the test catalog''' cls.cat = utils.getGeoServerCatalog() utils.cleanCatalog(cls.cat.catalog) cls.cat.catalog.create_workspace(WORKSPACE, "http://boundlessgeo.com") cls.ws = cls.cat.catalog.get_workspace(WORKSPACE) assert cls.ws is not None
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)
def setUp(self): self.cat = getGeoServerCatalog()