Update PyPI api URL.
Flask 1.0 is out, pip made breaking changes, warehouse is a thing, new requests soon. So much fun in python world lately.
This commit is contained in:
parent
d16d9e403a
commit
19554ba4a1
@ -45,7 +45,7 @@ class PyPIVersionClient(QObject):
|
||||
arg: The error message, as string.
|
||||
"""
|
||||
|
||||
API_URL = 'https://pypi.python.org/pypi/{}/json'
|
||||
API_URL = 'https://pypi.org/pypi/{}/json'
|
||||
success = pyqtSignal(str)
|
||||
error = pyqtSignal(str)
|
||||
|
||||
|
@ -67,7 +67,7 @@ def test_get_version_success(qtbot):
|
||||
with qtbot.waitSignal(client.success):
|
||||
client.get_version('test')
|
||||
|
||||
assert http_stub.url == QUrl('https://pypi.python.org/pypi/test/json')
|
||||
assert http_stub.url == QUrl(client.API_URL.format('test'))
|
||||
|
||||
|
||||
def test_get_version_error(qtbot):
|
||||
|
Loading…
Reference in New Issue
Block a user