Skip to content

Commit 1aee3d2

Browse files
committed
Upgrade cleo and clikit to the latest version
1 parent 3b30d2a commit 1aee3d2

File tree

3 files changed

+60
-11
lines changed

3 files changed

+60
-11
lines changed

Diff for: poetry.lock

+25-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ classifiers = [
2424
[tool.poetry.dependencies]
2525
python = "~2.7 || ^3.5"
2626
poetry-core = "^1.0.0a5"
27-
cleo = "^0.7.6"
28-
clikit = "^0.4.3"
27+
cleo = "^0.8.0"
28+
clikit = "^0.5.1"
2929
requests = "^2.18"
3030
cachy = "^0.3.0"
3131
requests-toolbelt = "^0.8.0"

Diff for: tests/console/commands/test_publish.py

+33-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
import pytest
2+
3+
from poetry.utils._compat import PY36
14
from poetry.utils._compat import Path
25

36

7+
@pytest.mark.skipif(
8+
not PY36, reason="Improved error rendering is only available on Python >=3.6"
9+
)
410
def test_publish_returns_non_zero_code_for_upload_errors(app, app_tester, http):
511
http.register_uri(
612
http.POST, "https://upload.pypi.org/legacy/", status=400, body="Bad Request"
@@ -14,7 +20,33 @@ def test_publish_returns_non_zero_code_for_upload_errors(app, app_tester, http):
1420
Publishing simple-project (1.2.3) to PyPI
1521
1622
17-
[UploadError]
23+
UploadError
24+
25+
HTTP Error 400: Bad Request
26+
"""
27+
28+
assert expected in app_tester.io.fetch_output()
29+
30+
31+
@pytest.mark.skipif(
32+
PY36, reason="Improved error rendering is not available on Python <3.6"
33+
)
34+
def test_publish_returns_non_zero_code_for_upload_errors_older_python(
35+
app, app_tester, http
36+
):
37+
http.register_uri(
38+
http.POST, "https://upload.pypi.org/legacy/", status=400, body="Bad Request"
39+
)
40+
41+
exit_code = app_tester.execute("publish --username foo --password bar")
42+
43+
assert 1 == exit_code
44+
45+
expected = """
46+
Publishing simple-project (1.2.3) to PyPI
47+
48+
49+
UploadError
1850
HTTP Error 400: Bad Request
1951
"""
2052

0 commit comments

Comments
 (0)