mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-26 03:08:02 +00:00
qurl -> url, and convert to Qurl is passed as a string
This commit is contained in:
@@ -28,7 +28,6 @@ from unittest.mock import (
|
||||
patch,
|
||||
)
|
||||
|
||||
from PyQt5.QtCore import QUrl
|
||||
from PyQt5.QtNetwork import QNetworkProxy
|
||||
|
||||
from test.picardtestcase import PicardTestCase
|
||||
@@ -115,7 +114,7 @@ class WebServiceTaskTest(PicardTestCase):
|
||||
def test_add_task(self):
|
||||
request = WSRequest(
|
||||
method='GET',
|
||||
qurl=QUrl('http://abc.xyz'),
|
||||
url='http://abc.xyz',
|
||||
handler=dummy_handler,
|
||||
)
|
||||
func = 1
|
||||
@@ -131,7 +130,7 @@ class WebServiceTaskTest(PicardTestCase):
|
||||
mock_timer2 = self.ws._timer_count_pending_requests
|
||||
request = WSRequest(
|
||||
method='GET',
|
||||
qurl=QUrl('http://abc.xyz'),
|
||||
url='http://abc.xyz',
|
||||
handler=dummy_handler,
|
||||
)
|
||||
self.ws.add_task(0, request)
|
||||
@@ -180,7 +179,7 @@ class RequestTaskTest(PicardTestCase):
|
||||
def test_from_request(self):
|
||||
request = WSRequest(
|
||||
method='GET',
|
||||
qurl=QUrl('https://example.com'),
|
||||
url='https://example.com',
|
||||
handler=dummy_handler,
|
||||
priority=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user