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:
Jimmy 2018-05-02 20:51:02 +12:00
parent d16d9e403a
commit 19554ba4a1
2 changed files with 2 additions and 2 deletions

View File

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

View File

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