kindwolf.org Git repositories moulti / master tests / test_inputquestion.py
master

Tree @master (Download .tar.gz)

test_inputquestion.py @masterraw · history · blame

from .common import moulti_test, wait_script_start
assert moulti_test

def test_inputquestion(moulti_test):
	command = ['inputquestion.bash']
	async def run_before(pilot):
		await wait_script_start(pilot)
		await pilot.pause(.5)
		await pilot.press('ctrl+y') # next unanswered question
		await pilot.pause(.1)
		await pilot.press(*'Alice', 'enter')
	assert moulti_test(command=command, run_before=run_before)