Exemplo n.º 1
0
def test_support_no_colorama_no_curses(
    fake_tty, no_curses_mock, no_colorama_mock, orig_isatty
):
    reload(termui)  # ensure mocks side effects
    assert not termui.SYSTEM_SUPPORTS_COLOR
    assert not termui.supports_color(fake_tty)
Exemplo n.º 2
0
def test_support_no_colorama_no_curses(
        fake_tty, no_curses_mock, no_colorama_mock, orig_isatty):
    reload(termui)  # ensure mocks side effects
    assert not termui.SYSTEM_SUPPORTS_COLOR
    assert not termui.supports_color(fake_tty)
Exemplo n.º 3
0
def test_support_no_colorama_no_curses(capsys, no_curses_mock,
                                       no_colorama_mock):
    reload(termui)  # ensure mocks side effects
    assert not termui.SYSTEM_SUPPORTS_COLOR
    with capsys.disabled():
        assert not termui.supports_color()