from ui_common import hex_to_rgba def test_hex_to_rgba_converts_correctly(): assert hex_to_rgba("#2a78d6", 0.3) == "rgba(42,120,214,0.3)" def test_hex_to_rgba_handles_hash_optional(): assert hex_to_rgba("2a78d6", 0.3) == "rgba(42,120,214,0.3)"