Beispiel #1
0
def test_cyan_text():
    x = "{}{}{}".format(colorama.Fore.CYAN, "foo", colorama.Style.RESET_ALL)

    assert x == logger.cyan_text("foo")
Beispiel #2
0
def test_cyan_text(monkeypatch):
    monkeypatch.setenv("PY_COLORS", "1")
    x = "{}{}{}".format(colorama.Fore.CYAN, "foo", colorama.Style.RESET_ALL)

    assert x == logger.cyan_text("foo")
    monkeypatch.setenv("PY_COLORS", "0")
Beispiel #3
0
def test_cyan_text():
    x = '{}{}{}'.format(colorama.Fore.CYAN, 'foo', colorama.Style.RESET_ALL)

    assert x == logger.cyan_text('foo')
Beispiel #4
0
def test_cyan_text():
    x = '{}{}{}'.format(colorama.Fore.CYAN, 'foo', colorama.Style.RESET_ALL)

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