Skip to content

Commit

Permalink
issue #104 - fix logic error in acceptance test changes from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Aug 13, 2017
1 parent 2bb8d10 commit f5d8294
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions biweeklybudget/tests/acceptance/flaskapp/views/test_account.py
Expand Up @@ -190,7 +190,7 @@ def test_acct_table(self, selenium):
table = panel.find_element_by_tag_name('table')
texts = self.tbody2textlist(table)
elems = self.tbody2elemlist(table)
assert texts[0:4] == [
assert texts[0:8] == [
['Description', 'First Credit Card, limit 2000'],
['Type', 'Credit'],
['Ledger Balance', '-$952.06'],
Expand All @@ -200,10 +200,10 @@ def test_acct_table(self, selenium):
['Billing Period Class', 'BillingPeriodNumDays(30)'],
['Minimum Payment Class', 'MinPaymentAmEx']
]
assert texts[4][0] == 'Last OFX Data'
assert '(13 hours ago)' in texts[4][1]
assert elems[4][1].get_attribute('class') == 'data_age'
assert texts[5:] == [
assert texts[8][0] == 'Last OFX Data'
assert '(13 hours ago)' in texts[8][1]
assert elems[8][1].get_attribute('class') == 'data_age'
assert texts[9:] == [
['Active?', 'True'],
['OFXGetter Config', 'None'],
['reconcile_trans', 'True'],
Expand Down Expand Up @@ -246,7 +246,7 @@ def test_acct_table(self, selenium):
table = panel.find_element_by_tag_name('table')
texts = self.tbody2textlist(table)
elems = self.tbody2elemlist(table)
assert texts[0:4] == [
assert texts[0:8] == [
['Description', 'Credit 2 limit 5500'],
['Type', 'Credit'],
['Ledger Balance', '-$5,498.65'],
Expand All @@ -256,10 +256,10 @@ def test_acct_table(self, selenium):
['Billing Period Class', 'BillingPeriodNumDays(30)'],
['Minimum Payment Class', 'MinPaymentDiscover']
]
assert texts[4][0] == 'Last OFX Data'
assert '(a day ago)' in texts[4][1]
assert elems[4][1].get_attribute('class') == 'data_age'
assert texts[5:] == [
assert texts[8][0] == 'Last OFX Data'
assert '(a day ago)' in texts[8][1]
assert elems[8][1].get_attribute('class') == 'data_age'
assert texts[9:] == [
['Active?', 'True'],
['OFXGetter Config', ''],
['reconcile_trans', 'True'],
Expand Down

0 comments on commit f5d8294

Please sign in to comment.