()
| 29 | |
| 30 | |
| 31 | def test_quit(): |
| 32 | board = mancala.getNewBoard() |
| 33 | # Test quitting: |
| 34 | with pytest.raises(SystemExit): |
| 35 | sys.stdin = io.StringIO('QUIT\n') |
| 36 | mancala.getPlayerMove('1', board) |
| 37 | |
| 38 | with pytest.raises(SystemExit): |
| 39 | sys.stdin = io.StringIO('quit\n') |
| 40 | mancala.getPlayerMove('1', board) |
| 41 | |
| 42 | with pytest.raises(SystemExit): |
| 43 | sys.stdin = io.StringIO('qUiT\n') |
| 44 | mancala.getPlayerMove('1', board) |
| 45 | |
| 46 | with pytest.raises(SystemExit): |
| 47 | sys.stdin = io.StringIO(' quit \n') |
| 48 | mancala.getPlayerMove('1', board) |
| 49 | |
| 50 | |
| 51 | def test_main(capsys): |
nothing calls this directly
no outgoing calls
no test coverage detected