diff --git a/pytest/test_menus.py b/pytest/test_menus.py index e9d1d792f..747c9ab32 100644 --- a/pytest/test_menus.py +++ b/pytest/test_menus.py @@ -16,22 +16,18 @@ def start_openomf(): return p -#def test_quit(): -# p = start_openomf() -# p.sendline("quit") -# p.expect(EOF, timeout=60) -# p.wait() +def test_quit(): + p = start_openomf() + p.sendline("quit") + p.expect(EOF, timeout=60) + p.wait() def test_tournament_menu(): p = start_openomf() p.expect("Loaded scene SCENE_MENU", timeout=180) - time.sleep(5) - p.send("scene SCENE_MECHLAB\n") - time.sleep(5) + p.sendline("scene SCENE_MECHLAB") p.expect("Loaded scene SCENE_MECHLAB", timeout=180) - time.sleep(5) - p.send("quit\n") - time.sleep(5) + p.sendline("quit") p.expect(EOF, timeout=180) p.wait()