MCPcopy
hub / github.com/StevenBlack/hosts / test_print_success_support

Method test_print_success_support

testUpdateHostsFile.py:2097–2103  ·  view source on GitHub ↗
(self, _)

Source from the content-addressed store, hash-verified

2095
2096 @mock.patch("updateHostsFile.supports_color", return_value=True)
2097 def test_print_success_support(self, _):
2098 print_success(self.text)
2099
2100 expected = Colors.SUCCESS + self.text + Colors.ENDC + "\n"
2101 actual = sys.stdout.getvalue()
2102
2103 self.assertEqual(actual, expected)
2104
2105
2106class TestPrintFailure(BaseStdout):

Callers

nothing calls this directly

Calls 1

print_successFunction · 0.90

Tested by

no test coverage detected