def test_yellow_text():
    x = "{}{}{}".format(colorama.Fore.YELLOW, "foo", colorama.Style.RESET_ALL)

    assert x == logger.yellow_text("foo")
Exemple #2
0
def test_yellow_text(monkeypatch):
    monkeypatch.setenv("PY_COLORS", "1")
    x = "{}{}{}".format(colorama.Fore.YELLOW, "foo", colorama.Style.RESET_ALL)

    assert x == logger.yellow_text("foo")
    monkeypatch.setenv("PY_COLORS", "0")
Exemple #3
0
def test_yellow_text():
    x = '{}{}{}'.format(colorama.Fore.YELLOW, 'foo', colorama.Style.RESET_ALL)

    assert x == logger.yellow_text('foo')
Exemple #4
0
def test_yellow_text():
    x = '{}{}{}'.format(colorama.Fore.YELLOW, 'foo', colorama.Style.RESET_ALL)

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