v0.61.1: update the art-border test to the uniform grey line

v0.61.0 shipped with this test still pinning the old two-tone edge.
This commit is contained in:
2026-10-17 00:42:58 -07:00
parent 42114f252b
commit 770a239138
2 changed files with 8 additions and 5 deletions
+7 -4
View File
@@ -26,11 +26,14 @@ def test_art_keeps_the_empty_panels_place_and_border(qapp, tmp_path):
assert art.height() == art.width() + NO_ART_GAP
image = art.grab().toImage()
middle = image.width() // 2
# the gap and the panel's darker top edge, unchanged
for y in range(NO_ART_GAP + 1):
# the gap unchanged; with art the outline is the lists' uniform grey
# (Round 92), the cover right inside it
from lintunes.gui.sidebar import frame_color
for y in range(NO_ART_GAP):
assert image.pixelColor(middle, y) == empty.pixelColor(middle, y)
# ...and the cover just inside it
assert image.pixelColor(middle, NO_ART_GAP + 2) == QColor("white")
assert image.pixelColor(middle, NO_ART_GAP).name() == frame_color(
art.palette()).name()
assert image.pixelColor(middle, NO_ART_GAP + 1) == QColor("white")
assert image.pixelColor(middle, image.height() // 2) == QColor("white")
window.close()