Skip to content

Commit

Permalink
Fix test after QgsFileDownloader move to core and API change
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Oct 26, 2017
1 parent 13ba577 commit ecf93e3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/src/python/test_authmanager_password_ows.py
Expand Up @@ -40,10 +40,9 @@
QgsAuthMethodConfig,
QgsVectorLayer,
QgsRasterLayer,
)
from qgis.gui import (
QgsFileDownloader,
)

from qgis.testing import (
start_app,
unittest,
Expand Down Expand Up @@ -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'))
Expand Down Expand Up @@ -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'))
Expand Down

0 comments on commit ecf93e3

Please sign in to comment.