From d13818eb6c76eb18d0e575d39db6f74fc472705b Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Fri, 18 Jul 2014 13:25:24 +0200 Subject: [PATCH] Fix tests --- tests/test_analytic_line_state.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_analytic_line_state.py b/tests/test_analytic_line_state.py index 70437db..68e429e 100644 --- a/tests/test_analytic_line_state.py +++ b/tests/test_analytic_line_state.py @@ -172,6 +172,7 @@ class TestCase(unittest.TestCase): 'credit': Decimal(30000), 'currency': currency.id, 'account': project1.id, + 'date': period.start_date, 'journal': journal_revenue.id, }]), ] @@ -274,6 +275,7 @@ class TestCase(unittest.TestCase): 'debit': Decimal(0), 'credit': Decimal(30000), 'currency': currency.id, + 'date': today, 'account': project1.id, 'journal': journal_revenue.id, @@ -314,6 +316,7 @@ class TestCase(unittest.TestCase): if l.account.kind == 'expense'][0] line1, = self.analytic_line.create([{ 'name': 'Materials purchase', + 'credit': Decimal(0), 'debit': Decimal(600), 'currency': currency.id, 'account': project1.id, @@ -329,6 +332,7 @@ class TestCase(unittest.TestCase): line2, = self.analytic_line.create([{ 'name': 'Salaries', + 'credit': Decimal(0), 'debit': Decimal(500), 'currency': currency.id, 'account': project1.id, @@ -388,6 +392,7 @@ class TestCase(unittest.TestCase): 'credit': Decimal(30000), 'currency': currency.id, 'account': project1.id, + 'date': period.start_date, 'journal': journal_revenue.id, }]),