Skip to content

Commit 732bdc5

Browse files
committed
Fixed integration tests
1 parent c728242 commit 732bdc5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Diff for: test/test_update.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ def test_update_with_url_not_found(run_command, httpserver):
6161
res = run_command(["update", f"--additional-urls={url}"])
6262
assert res.failed
6363
lines = [l.strip() for l in res.stderr.splitlines()]
64-
assert (
65-
f"Error updating core and libraries index: Error downloading index '{url}':"
66-
" Server responded with: 404 NOT FOUND" in lines
67-
)
64+
assert f"Error updating index: Error downloading index '{url}': Server responded with: 404 NOT FOUND" in lines
6865

6966

7067
def test_update_with_url_internal_server_error(run_command, httpserver):
@@ -78,8 +75,8 @@ def test_update_with_url_internal_server_error(run_command, httpserver):
7875
assert res.failed
7976
lines = [l.strip() for l in res.stderr.splitlines()]
8077
assert (
81-
f"Error updating core and libraries index: Error downloading index '{url}':"
82-
" Server responded with: 500 INTERNAL SERVER ERROR" in lines
78+
f"Error updating index: Error downloading index '{url}': Server responded with: 500 INTERNAL SERVER ERROR"
79+
in lines
8380
)
8481

8582

0 commit comments

Comments
 (0)