Skip to content

Commit

Permalink
fix tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
renat-nosto committed Feb 27, 2024
1 parent 152a502 commit 4c679fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples-and-tests/i-am-a-developer/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,12 +594,12 @@ def testSimpleProjectCreation(self):
self.assertTrue(wait_for(self.play, 'ArithmeticException occurred : / by zero'))
self.assertTrue(wait_for(self.play, 'at controllers.Application.index(Application.java:13)'))
self.assertTrue(wait_for(self.play, '...'))
kill_play(self.play)
kill_play(self.play)
# Fix it
step('Fix it')

delete(app, 'app/controllers/Application.java', 13)

with call_play(self, ['run', app]) as self.play:
self.assertTrue(wait_for(self.play, "Application 'YOP' is now started !"))
response = browser.reload()
Expand Down Expand Up @@ -691,7 +691,7 @@ def testSimpleProjectCreation(self):
time.sleep(1)

edit(app, 'conf/routes', 7, "GET /hello Hello2.hello")

with call_play(self, ['run', app]) as self.play:
self.assertTrue(wait_for(self.play, "Application 'YOP' is now started !"))
browser.reload()
Expand Down

0 comments on commit 4c679fe

Please sign in to comment.