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

Method test_valid_yes

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

Source from the content-addressed store, hash-verified

1826 side_effect=["yes", "YES", "Y", "yeS", "y", "YeS", "yES", "YEs"],
1827 )
1828 def test_valid_yes(self, _):
1829 self.assertTrue(query_yes_no("?", None))
1830
1831 @mock.patch("updateHostsFile.input", side_effect=["foo", "yes", "foo", "no"])
1832 def test_invalid_then_valid(self, _):

Callers

nothing calls this directly

Calls 1

query_yes_noFunction · 0.90

Tested by

no test coverage detected