From baba4e0205fbffddcf9369e49e753940369bb60f Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Tue, 25 Aug 2026 16:06:54 +0200 Subject: [PATCH] tests: pin override and MISSING tag colours in the text tree Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01EYNdaGDrpaqDyT8QtrTQbM --- tests/test_conandeps.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_conandeps.py b/tests/test_conandeps.py index 102d4f2..61e22d7 100644 --- a/tests/test_conandeps.py +++ b/tests/test_conandeps.py @@ -344,7 +344,10 @@ def test_text_and_html_render(report, tmp_path): coloured = conandeps.render_text(report, color=True) assert "\033[1;31mMISSING\033[0m" in coloured and "\033[32mtest\033[0m" in coloured - assert "\033[2mlibfoo -> libbar -> libdeep\033[0m" in coloured # tree path tag, dim + # Tree tags: path dim, override yellow, MISSING bold red. + assert "\033[2mlibfoo -> libbar -> libdeep\033[0m" in coloured + assert "\033[33moverrides libbar/1.0 (explicit by your conanfile)\033[0m" in coloured + assert "\033[1;31mMISSING: Debug,RelWithDebInfo\033[0m" in coloured # Colour codes must not break column alignment: same visible layout. strip = conandeps._ANSI_RE.sub assert strip("", coloured) == text