Skip to content

Commit b615df5

Browse files
authored
[skip changelog] Fix core search command tests (#1055)
1 parent 80bc7e1 commit b615df5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: test/test_core.py

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def test_core_search(run_command, httpserver):
7171
assert ["Updating", "index:", "package_index.json.sig", "downloaded"] in lines
7272
assert ["Retrokits-RK002:arm", "1.0.5", "RK002"] in lines
7373
assert ["Retrokits-RK002:arm", "1.0.6", "RK002"] in lines
74+
header_index = lines.index(["ID", "Version", "Name"])
7475
# We use black to format and flake8 to lint .py files but they disagree on certain
7576
# things like this one, thus we ignore this specific flake8 rule and stand by black
7677
# opinion.
@@ -86,6 +87,7 @@ def test_core_search(run_command, httpserver):
8687
assert ["Updating", "index:", "package_index.json.sig", "downloaded"] in lines
8788
assert ["Retrokits-RK002:arm", "1.0.5", "RK002"] in lines
8889
assert ["Retrokits-RK002:arm", "1.0.6", "RK002"] in lines
90+
header_index = lines.index(["ID", "Version", "Name"])
8991
# We use black to format and flake8 to lint .py files but they disagree on certain
9092
# things like this one, thus we ignore this specific flake8 rule and stand by black
9193
# opinion.
@@ -100,6 +102,7 @@ def test_core_search(run_command, httpserver):
100102
assert ["Updating", "index:", "package_index.json", "downloaded"] in lines
101103
assert ["Updating", "index:", "package_index.json.sig", "downloaded"] in lines
102104
assert ["Package:x86", "1.2.3", "Platform"] in lines
105+
header_index = lines.index(["ID", "Version", "Name"])
103106
# We use black to format and flake8 to lint .py files but they disagree on certain
104107
# things like this one, thus we ignore this specific flake8 rule and stand by black
105108
# opinion.

0 commit comments

Comments
 (0)