From c7ae2ff0ea31a3191a6136610d24a755928cdd0a Mon Sep 17 00:00:00 2001 From: Jason Antman Date: Sun, 1 Mar 2020 07:44:50 -0500 Subject: [PATCH] fix travis test error --- biweeklybudget/tests/unit/test_plaid_updater.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/biweeklybudget/tests/unit/test_plaid_updater.py b/biweeklybudget/tests/unit/test_plaid_updater.py index 0ae3516a..62a2b646 100644 --- a/biweeklybudget/tests/unit/test_plaid_updater.py +++ b/biweeklybudget/tests/unit/test_plaid_updater.py @@ -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' @@ -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', @@ -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 @@ -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', @@ -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 @@ -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',