예제 #1
0
def test_red_text():
    x = "{}{}{}".format(colorama.Fore.RED, "foo", colorama.Style.RESET_ALL)

    assert x == logger.red_text("foo")
예제 #2
0
def test_red_text(monkeypatch):
    monkeypatch.setenv("PY_COLORS", "1")
    x = "{}{}{}".format(colorama.Fore.RED, "foo", colorama.Style.RESET_ALL)

    assert x == logger.red_text("foo")
    monkeypatch.setenv("PY_COLORS", "0")
예제 #3
0
def test_red_text():
    x = '{}{}{}'.format(colorama.Fore.RED, 'foo', colorama.Style.RESET_ALL)

    assert x == logger.red_text('foo')
예제 #4
0
def test_red_text():
    x = '{}{}{}'.format(colorama.Fore.RED, 'foo', colorama.Style.RESET_ALL)

    assert x == logger.red_text('foo')