MCPcopy Index your code
hub / github.com/StevenBlack/hosts / testNoSkipPromptDisplay

Method testNoSkipPromptDisplay

testUpdateHostsFile.py:369–376  ·  view source on GitHub ↗
(self, mock_query)

Source from the content-addressed store, hash-verified

367
368 @mock.patch("updateHostsFile.query_yes_no", return_value=True)
369 def testNoSkipPromptDisplay(self, mock_query):
370 gatherexclusions = prompt_for_exclusions(skipprompt=False)
371 self.assertTrue(gatherexclusions)
372
373 output = sys.stdout.getvalue()
374 self.assertEqual(output, "")
375
376 self.assert_called_once(mock_query)
377
378
379class TestPromptForFlushDnsCache(Base):

Callers

nothing calls this directly

Calls 2

prompt_for_exclusionsFunction · 0.90
assert_called_onceMethod · 0.80

Tested by

no test coverage detected