Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj committed Dec 3, 2024
1 parent c8c8d21 commit 93f68f1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pytest/test_menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,20 @@ 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.expect("Loaded scene SCENE_MECHLAB", timeout=180)
time.sleep(5)
p.send("quit\n")
time.sleep(5)
p.expect(EOF, timeout=180)
p.wait()

0 comments on commit 93f68f1

Please sign in to comment.