MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / test_pause

Function test_pause

tests/test_blackjack.py:145–149  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

143
144
145def test_pause(capsys):
146 sys.stdin = io.StringIO('\n')
147 blackjack.pause()
148 captured = capsys.readouterr()
149 assert captured.out == 'Press Enter to continue...\n\n\n'
150
151
152def test_getMove():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected