Skip to content

Commit

Permalink
issue #142 - fix acceptance tests broken by previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Nov 2, 2017
1 parent aff74ee commit f023f0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def test_51_add_income_modal(self, base_url, selenium):
# test that updated budget was removed from the page
stable = selenium.find_element_by_id('table-periodic-budgets')
selems = self.tbody2elemlist(stable)
assert selems[-1][1].get_attribute(
assert selems[2][1].get_attribute(
'innerHTML') == '<a href="javascript:budgetModal(9, null)">' \
'NewIncome (9)</a> <em class="text-success">' \
'(income)</em>'
Expand Down
3 changes: 2 additions & 1 deletion biweeklybudget/tests/acceptance/flaskapp/views/test_ofx.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
@pytest.mark.usefixtures('refreshdb', 'testflask')
class TestOFX(AcceptanceHelper):

def test_0_get_page(self, base_url, selenium):
@pytest.fixture(autouse=True)
def get_page(self, base_url, selenium):
self.baseurl = base_url
self.get(selenium, base_url + '/ofx')

Expand Down

0 comments on commit f023f0a

Please sign in to comment.