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

Function test_list

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

Source from the content-addressed store, hash-verified

10
11
12def test_list(example_app):
13 example_app.expect(textwrap.dedent("""\
14 ? What do you want to do? (Use arrow keys)
15 ❯ Order a pizza
16 Make a reservation
17 ---------------
18 Ask for opening hours
19 - Contact support (Unavailable at this time)
20 Talk to the receptionist"""))
21 example_app.write(keys.ENTER)
22 example_app.expect(textwrap.dedent("""\
23 ? What do you want to do? Order a pizza
24 ? What size do you need? (Use arrow keys)
25 ❯ Jumbo
26 Large
27 Standard
28 Medium
29 Small
30 Micro"""))
31 example_app.write(keys.ENTER)
32 example_app.expect(textwrap.dedent("""\
33 ? What size do you need? Jumbo
34 ? Which vehicle you want to use for delivery? (Use arrow keys)
35 ❯ bike
36 car
37 truck
38 helicopter"""))
39 example_app.write(keys.ENTER)
40 example_app.expect(textwrap.dedent("""\
41 ? Which vehicle you want to use for delivery? bike
42 {'delivery': 'bike', 'size': 'jumbo', 'theme': 'Order a pizza'}
43 """))

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…