Skip to content
Permalink
Browse files

Fix test after QgsFileDownloader move to core and API change

  • Loading branch information
elpaso committed Oct 26, 2017
1 parent 13ba577 commit ecf93e38ec3888264dd02b64a2b212b6a6c9e7ef
Showing with 3 additions and 4 deletions.
  1. +3 −4 tests/src/python/test_authmanager_password_ows.py
@@ -40,10 +40,9 @@
QgsAuthMethodConfig,
QgsVectorLayer,
QgsRasterLayer,
)
from qgis.gui import (
QgsFileDownloader,
)

from qgis.testing import (
start_app,
unittest,
@@ -211,7 +210,7 @@ def testInvalidAuthFileDownload(self):
destination = tempfile.mktemp()
loop = QEventLoop()

downloader = QgsFileDownloader(QUrl(url), destination, False)
downloader = QgsFileDownloader(QUrl(url), destination, None, False)
downloader.downloadCompleted.connect(partial(self._set_slot, 'completed'))
downloader.downloadExited.connect(partial(self._set_slot, 'exited'))
downloader.downloadCanceled.connect(partial(self._set_slot, 'canceled'))
@@ -247,7 +246,7 @@ def testValidAuthFileDownload(self):
destination = tempfile.mktemp()
loop = QEventLoop()

downloader = QgsFileDownloader(QUrl(url), destination, False, self.auth_config.id())
downloader = QgsFileDownloader(QUrl(url), destination, self.auth_config.id(), False)
downloader.downloadCompleted.connect(partial(self._set_slot, 'completed'))
downloader.downloadExited.connect(partial(self._set_slot, 'exited'))
downloader.downloadCanceled.connect(partial(self._set_slot, 'canceled'))

0 comments on commit ecf93e3

Please sign in to comment.
You can’t perform that action at this time.