Skip to content

Commit

Permalink
add debugging for failing acceptance tests in TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Mar 28, 2017
1 parent b6438ef commit 79035dd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions biweeklybudget/tests/acceptance/flaskapp/views/test_budgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from selenium.webdriver.support.ui import Select

from biweeklybudget.tests.acceptance_helpers import AcceptanceHelper
from biweeklybudget.models.budget_model import Budget


@pytest.mark.acceptance
Expand Down Expand Up @@ -171,7 +172,11 @@ def get_page(self, base_url, selenium, testflask, testdb): # noqa
self.baseurl = base_url
selenium.get(base_url + '/budgets')

def test_1_populate_modal(self, selenium):
def test_1_populate_modal(self, selenium, testdb):
for b in testdb.query(Budget).all():
print("Budget %d (%s) is_periodic=%s" % (
b.id, b.name, b.is_periodic
))
link = selenium.find_element_by_xpath('//a[text()="Standing1 (4)"]')
link.click()
modal, title, body = self.get_modal_parts(selenium)
Expand Down Expand Up @@ -207,7 +212,11 @@ def get_page(self, base_url, selenium, testflask, testdb): # noqa
self.baseurl = base_url
selenium.get(base_url + '/budgets')

def test_1_populate_modal(self, selenium):
def test_1_populate_modal(self, selenium, testdb):
for b in testdb.query(Budget).all():
print("Budget %d (%s) is_periodic=%s" % (
b.id, b.name, b.is_periodic
))
link = selenium.find_element_by_xpath('//a[text()="Standing2 (5)"]')
link.click()
modal, title, body = self.get_modal_parts(selenium)
Expand Down

0 comments on commit 79035dd

Please sign in to comment.