MCPcopy Create free account
hub / github.com/lesspass/lesspass / TestInteraction

Class TestInteraction

cli/tests/test_interaction.py:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class TestInteraction(unittest.TestCase):
7 def test_keyboard_interrupt(self):
8 p = pexpect.spawn("python3 lesspass/core.py --prompt")
9 p.expect("Site: ")
10 p.kill(signal.SIGINT)
11 p.expect(pexpect.EOF)
12 self.assertEqual(p.before, b"")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected