Пример #1
0
def test_green_text():
    x = "{}{}{}".format(colorama.Fore.GREEN, "foo", colorama.Style.RESET_ALL)

    assert x == logger.green_text("foo")
Пример #2
0
def test_green_text(monkeypatch):
    monkeypatch.setenv("PY_COLORS", "1")
    x = "{}{}{}".format(colorama.Fore.GREEN, "foo", colorama.Style.RESET_ALL)

    assert x == logger.green_text("foo")
    monkeypatch.setenv("PY_COLORS", "0")
Пример #3
0
def test_green_text():
    x = '{}{}{}'.format(colorama.Fore.GREEN, 'foo', colorama.Style.RESET_ALL)

    assert x == logger.green_text('foo')
Пример #4
0
def test_green_text():
    x = '{}{}{}'.format(colorama.Fore.GREEN, 'foo', colorama.Style.RESET_ALL)

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