Skip to content

Commit dd4bd9c

Browse files
committed
fix: align contrast tests with visibility diagnostics
1 parent a70f3f2 commit dd4bd9c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

quickthumb/_diagnostics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
OverlapMeasurement,
1313
SafeMarginPreset,
1414
TiledContrastMeasurement,
15-
average_visible_background,
1615
bbox_payload,
1716
clear_overlap_suggestion,
1817
diagnostic_context,

tests/test_diagnostics.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,9 @@ def test_should_use_default_text_color_for_worst_tile_contrast(self):
573573
from quickthumb import Canvas
574574

575575
# given: default black text over a black background
576-
canvas = Canvas(200, 120).background(color="#000000").text("default", size=36)
576+
canvas = (
577+
Canvas(200, 120).background(color="#000000").text("default", size=36, position=(20, 20))
578+
)
577579

578580
# when
579581
diagnostics = canvas.diagnose()

0 commit comments

Comments
 (0)