MCPcopy Index your code
hub / github.com/CITGuru/PyInquirer / test_when_no_thanks

Function test_when_no_thanks

tests/test_example_when.py:55–71  ·  view source on GitHub ↗
(example_app)

Source from the content-addressed store, hash-verified

53
54
55def test_when_no_thanks(example_app):
56 example_app.expect('? Do you like bacon? (Y/n)')
57 example_app.write('n')
58
59 example_app.expect(textwrap.dedent("""\
60 ? Do you like bacon? No
61 ? Ok... Do you like pizza? (y/N)"""))
62 example_app.write('n')
63
64 example_app.expect(textwrap.dedent("""\
65 ? Ok... Do you like pizza? No
66 {
67 "bacon": false,
68 "pizza": false
69 }
70
71 """))

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…