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:
@@ -1,3 +1,3 @@
|
||||
"""LinTunes — iTunes-style music library manager and player for Linux."""
|
||||
|
||||
__version__ = "0.61.0"
|
||||
__version__ = "0.61.1"
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user