From 832f3eabd3a45a11276459217cbbf1525be5463c Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Mon, 2 Nov 2020 15:40:49 +0100 Subject: [PATCH] [skip changelog] Fix core search command tests --- test/test_core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_core.py b/test/test_core.py index 93d689433aa..976f5e36e8f 100644 --- a/test/test_core.py +++ b/test/test_core.py @@ -71,6 +71,7 @@ def test_core_search(run_command, httpserver): assert ["Updating", "index:", "package_index.json.sig", "downloaded"] in lines assert ["Retrokits-RK002:arm", "1.0.5", "RK002"] in lines assert ["Retrokits-RK002:arm", "1.0.6", "RK002"] in lines + header_index = lines.index(["ID", "Version", "Name"]) # We use black to format and flake8 to lint .py files but they disagree on certain # things like this one, thus we ignore this specific flake8 rule and stand by black # opinion. @@ -86,6 +87,7 @@ def test_core_search(run_command, httpserver): assert ["Updating", "index:", "package_index.json.sig", "downloaded"] in lines assert ["Retrokits-RK002:arm", "1.0.5", "RK002"] in lines assert ["Retrokits-RK002:arm", "1.0.6", "RK002"] in lines + header_index = lines.index(["ID", "Version", "Name"]) # We use black to format and flake8 to lint .py files but they disagree on certain # things like this one, thus we ignore this specific flake8 rule and stand by black # opinion. @@ -100,6 +102,7 @@ def test_core_search(run_command, httpserver): assert ["Updating", "index:", "package_index.json", "downloaded"] in lines assert ["Updating", "index:", "package_index.json.sig", "downloaded"] in lines assert ["Package:x86", "1.2.3", "Platform"] in lines + header_index = lines.index(["ID", "Version", "Name"]) # We use black to format and flake8 to lint .py files but they disagree on certain # things like this one, thus we ignore this specific flake8 rule and stand by black # opinion.