added the scheme field to FakeURL

This commit is contained in:
evanlee123 2017-12-06 23:57:19 -07:00 committed by GitHub
parent 02b24e8dfb
commit 4d13941290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: