Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
tests/backends/console: Skip stdin check for console.read()
Browse files Browse the repository at this point in the history
  • Loading branch information
raccube committed Jun 18, 2021
1 parent 3b80dfc commit e95ed44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/backends/console/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,17 @@ def is_finished(self) -> bool:
)

for _ in MockConsoleState.true_cases:
val = console.read("I want an bool", bool)
val = console.read("I want an bool", bool, check_stdin=False)
assert isinstance(val, bool)
assert val

for _ in MockConsoleState.false_cases:
val = console.read("I want an bool", bool)
val = console.read("I want an bool", bool, check_stdin=False)
assert isinstance(val, bool)
assert not val

# Test if false inputs are skipped.
val = console.read("I want an bool", bool)
val = console.read("I want an bool", bool, check_stdin=False)
assert isinstance(val, bool)
assert val

Expand Down

0 comments on commit e95ed44

Please sign in to comment.