added the scheme field to FakeURL
This commit is contained in:
parent
02b24e8dfb
commit
4d13941290
@ -131,11 +131,12 @@ class FakeUrl:
|
||||
|
||||
"""QUrl stub which provides .path(), isValid() and host()."""
|
||||
|
||||
def __init__(self, path=None, valid=True, host=None, url=None):
|
||||
def __init__(self, path=None, valid=True, host=None, url=None, scheme = None):
|
||||
self.path = mock.Mock(return_value=path)
|
||||
self.isValid = mock.Mock(returl_value=valid)
|
||||
self.host = mock.Mock(returl_value=host)
|
||||
self.url = mock.Mock(return_value=url)
|
||||
self.scheme = mock.Mock(return_value=scheme)
|
||||
|
||||
|
||||
class FakeNetworkReply:
|
||||
|
Loading…
Reference in New Issue
Block a user