MCPcopy Create free account
hub / github.com/CITGuru/PyInquirer / test_example_app

Function test_example_app

tests/test_helpers.py:18–26  ·  view source on GitHub ↗
(example_app)

Source from the content-addressed store, hash-verified

16
17
18def test_example_app(example_app):
19 # test the helper class plus demonstrate how to use it...
20 example_app.expect(textwrap.dedent("""\
21 hi, there!
22 let's get to know each other better...
23 Please enter your name: """))
24 example_app.writeline('Stuart')
25 assert example_app.readline() == 'Hi Stuart, have a nice day!'
26 assert example_app.readline() == 'It was a pleasure talking to you...'
27
28
29def test_example_app_dialog_style(example_app):

Callers

nothing calls this directly

Calls 3

expectMethod · 0.80
writelineMethod · 0.80
readlineMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…