def test_supports_color_false_if_no_conditions_are_met(self, mock_isatty): assert not supports_color()
def test_supports_color_true_if_colorterm_is_in_env(self, mock_isatty): os.environ['COLORTERM'] = 'True' assert supports_color()
def check_color_with_env(self, mock_isatty, term): os.environ['TERM'] = term assert supports_color()
def test_supports_color_true_if_color_flag_is_used(self, mock_isatty): sys.argv = ['--color'] assert supports_color()
def test_supports_color_false_if_term_is_dumb(self, mock_isatty): os.environ['TERM'] = 'dumb' assert not supports_color()
def test_supports_color_false_if_no_color_flag_is_used(self, mock_isatty): sys.argv = ['--no-color'] assert not supports_color()
def test_supports_color_true_if_platform_is_win32(self, mock_isatty): sys.platform = 'win32' assert supports_color()
def test_supports_color_false_if_no_conditions_are_met(self, mock_isatty): assert not supports_color()
def test_supports_color_false_if_not_tty(self, mock_isatty): assert not supports_color()
def test_supports_color_true_if_colorterm_is_in_env(self, mock_isatty): os.environ['COLORTERM'] = 'True' assert supports_color()
def check_color_with_env(self, mock_isatty, term): os.environ['TERM'] = term assert supports_color()
def test_supports_color_false_if_term_is_dumb(self, mock_isatty): os.environ['TERM'] = 'dumb' assert not supports_color()
def test_supports_color_true_if_color_flag_is_used(self, mock_isatty): sys.argv = ['--color'] assert supports_color()
def test_supports_color_true_if_platform_is_win32(self, mock_isatty): sys.platform = 'win32' assert supports_color()
def test_supports_color_false_if_no_color_flag_is_used(self, mock_isatty): sys.argv = ['--no-color'] assert not supports_color()
def test_supports_color_false_if_not_tty(self, mock_isatty): assert not supports_color()