Ejemplo n.º 1
0
    def show_osm_downloader(self):
        """Show the OSM buildings downloader dialog."""
        from safe_qgis.tools.osm_downloader import OsmDownloader

        dialog = OsmDownloader(self.iface.mainWindow(), self.iface)
        dialog.setModal(True)
        dialog.show()
Ejemplo n.º 2
0
    def setUp(self):
        """Runs before each test."""
        self.importDlg = OsmDownloader(PARENT, IFACE)

        ## provide Fake QNetworkAccessManager for self.network_manager
        self.importDlg.network_manager = FakeQNetworkAccessManager()