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

Method test_print_success_no_support

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

Source from the content-addressed store, hash-verified

2086
2087 @mock.patch("updateHostsFile.supports_color", return_value=False)
2088 def test_print_success_no_support(self, _):
2089 print_success(self.text)
2090
2091 expected = self.text + "\n"
2092 actual = sys.stdout.getvalue()
2093
2094 self.assertEqual(actual, expected)
2095
2096 @mock.patch("updateHostsFile.supports_color", return_value=True)
2097 def test_print_success_support(self, _):

Callers

nothing calls this directly

Calls 1

print_successFunction · 0.90

Tested by

no test coverage detected