Skip to content

Commit ecf93e3

Browse files
committedOct 26, 2017
Fix test after QgsFileDownloader move to core and API change
1 parent 13ba577 commit ecf93e3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎tests/src/python/test_authmanager_password_ows.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@
4040
QgsAuthMethodConfig,
4141
QgsVectorLayer,
4242
QgsRasterLayer,
43-
)
44-
from qgis.gui import (
4543
QgsFileDownloader,
4644
)
45+
4746
from qgis.testing import (
4847
start_app,
4948
unittest,
@@ -211,7 +210,7 @@ def testInvalidAuthFileDownload(self):
211210
destination = tempfile.mktemp()
212211
loop = QEventLoop()
213212

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

250-
downloader = QgsFileDownloader(QUrl(url), destination, False, self.auth_config.id())
249+
downloader = QgsFileDownloader(QUrl(url), destination, self.auth_config.id(), False)
251250
downloader.downloadCompleted.connect(partial(self._set_slot, 'completed'))
252251
downloader.downloadExited.connect(partial(self._set_slot, 'exited'))
253252
downloader.downloadCanceled.connect(partial(self._set_slot, 'canceled'))

0 commit comments

Comments
 (0)
Please sign in to comment.