How to use the todoman.formatters.rgb_to_ansi function in todoman

To help you get started, we’ve selected a few todoman examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pimutils / todoman / tests / test_formatter.py View on Github external
def test_rgb_to_ansi():
    assert rgb_to_ansi(None) is None
    assert rgb_to_ansi('#8ab6d') is None
    assert rgb_to_ansi('#8ab6d2f') == '\x1b[38;2;138;182;210m'
    assert rgb_to_ansi('red') is None
    assert rgb_to_ansi('#8ab6d2') == '\x1b[38;2;138;182;210m'
github pimutils / todoman / tests / test_formatter.py View on Github external
def test_rgb_to_ansi():
    assert rgb_to_ansi(None) is None
    assert rgb_to_ansi('#8ab6d') is None
    assert rgb_to_ansi('#8ab6d2f') == '\x1b[38;2;138;182;210m'
    assert rgb_to_ansi('red') is None
    assert rgb_to_ansi('#8ab6d2') == '\x1b[38;2;138;182;210m'
github pimutils / todoman / tests / test_formatter.py View on Github external
def test_rgb_to_ansi():
    assert rgb_to_ansi(None) is None
    assert rgb_to_ansi('#8ab6d') is None
    assert rgb_to_ansi('#8ab6d2f') == '\x1b[38;2;138;182;210m'
    assert rgb_to_ansi('red') is None
    assert rgb_to_ansi('#8ab6d2') == '\x1b[38;2;138;182;210m'
github pimutils / todoman / tests / test_formatter.py View on Github external
def test_rgb_to_ansi():
    assert rgb_to_ansi(None) is None
    assert rgb_to_ansi('#8ab6d') is None
    assert rgb_to_ansi('#8ab6d2f') == '\x1b[38;2;138;182;210m'
    assert rgb_to_ansi('red') is None
    assert rgb_to_ansi('#8ab6d2') == '\x1b[38;2;138;182;210m'
github pimutils / todoman / tests / test_formatter.py View on Github external
def test_rgb_to_ansi():
    assert rgb_to_ansi(None) is None
    assert rgb_to_ansi('#8ab6d') is None
    assert rgb_to_ansi('#8ab6d2f') == '\x1b[38;2;138;182;210m'
    assert rgb_to_ansi('red') is None
    assert rgb_to_ansi('#8ab6d2') == '\x1b[38;2;138;182;210m'