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

Function test_when_bacon

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

Source from the content-addressed store, hash-verified

10
11
12def test_when_bacon(example_app):
13 example_app.expect('? Do you like bacon? (Y/n)')
14 example_app.write(keys.ENTER)
15
16 example_app.expect(textwrap.dedent("""\
17 ? Do you like bacon? Yes
18 ? Bacon lover, what is your favorite type of bacon? """))
19 example_app.writeline('smoked bacon')
20 example_app.expect(textwrap.dedent("""\
21 ? Bacon lover, what is your favorite type of bacon? smoked bacon
22 {
23 "bacon": true,
24 "favorite": "smoked bacon"
25 }
26
27 """))
28
29
30def test_when_pizza(example_app):

Callers

nothing calls this directly

Calls 3

expectMethod · 0.80
writeMethod · 0.80
writelineMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…