Skip to content

Commit

Permalink
fix travis test error
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Nov 25, 2022
1 parent 7962931 commit c7ae2ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions biweeklybudget/tests/unit/test_plaid_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class TestStmtForAcct(PlaidUpdaterTester):
def test_credit(self):
mock_acct = Mock(id=5)
type(mock_acct).name = 'acct5'
end_dt = datetime(2020, 5, 25, 0, 0, 0)
end_dt = datetime(2020, 5, 25, 0, 0, 0, tzinfo=UTC)
txns = {
'item': {
'institution_id': 'abc123'
Expand Down Expand Up @@ -256,7 +256,7 @@ def test_credit(self):
assert m_ofxstmt.mock_calls == [
call(
account_id=5,
filename='Plaid_acct5_1590379200.ofx',
filename='Plaid_acct5_1590364800.ofx',
file_mtime=end_dt,
as_of=end_dt,
currency='USD',
Expand All @@ -270,7 +270,7 @@ def test_credit(self):
def test_investment(self):
mock_acct = Mock(id=5)
type(mock_acct).name = 'acct5'
end_dt = datetime(2020, 5, 25, 0, 0, 0)
end_dt = datetime(2020, 5, 25, 0, 0, 0, tzinfo=UTC)
txns = {
'item': {
'institution_id': None
Expand Down Expand Up @@ -306,7 +306,7 @@ def test_investment(self):
assert m_ofxstmt.mock_calls == [
call(
account_id=5,
filename='Plaid_acct5_1590379200.ofx',
filename='Plaid_acct5_1590364800.ofx',
file_mtime=end_dt,
as_of=end_dt,
currency='USD',
Expand All @@ -319,7 +319,7 @@ def test_investment(self):
def test_unknown_type(self):
mock_acct = Mock(id=5)
type(mock_acct).name = 'acct5'
end_dt = datetime(2020, 5, 25, 0, 0, 0)
end_dt = datetime(2020, 5, 25, 0, 0, 0, tzinfo=UTC)
txns = {
'item': {
'institution_id': None
Expand Down Expand Up @@ -354,7 +354,7 @@ def test_unknown_type(self):
assert m_ofxstmt.mock_calls == [
call(
account_id=5,
filename='Plaid_acct5_1590379200.ofx',
filename='Plaid_acct5_1590364800.ofx',
file_mtime=end_dt,
as_of=end_dt,
currency='USD',
Expand Down

0 comments on commit c7ae2ff

Please sign in to comment.