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 4871402
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions pytest/test_menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 4871402

Please sign in to comment.