diff options
| author | Laurent Smet <las@odoo.com> | 2019-09-10 09:50:23 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2019-09-12 09:58:49 +0000 |
| commit | c12bd7125a1c64339e02ae0563f667b8de931b3b (patch) | |
| tree | 3b2621c7266e7bc25bbd2eb7ee0cfeafa4f72025 /addons | |
| parent | 5f1638e42de0ef35727c8213ab519ef5d40e5c2b (diff) | |
[IMP] Improve assertRecordValues ouput for tests in common.py
Display the differences in assertRecordValues instead of the whole inputs.
closes odoo/odoo#36613
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/tests/test_reconciliation_matching_rules.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/account/tests/test_reconciliation_matching_rules.py b/addons/account/tests/test_reconciliation_matching_rules.py index 01b3838a352..276250decff 100644 --- a/addons/account/tests/test_reconciliation_matching_rules.py +++ b/addons/account/tests/test_reconciliation_matching_rules.py @@ -329,9 +329,9 @@ class TestReconciliationMatchingRules(AccountingTestCase): # Check first line has been well reconciled. self.assertRecordValues(self.bank_line_1.journal_entry_ids, [ - {'partner_id': self.partner_1.id, 'debit': 100.0, 'credit': 0.0, 'tax_ids': [self.tax21.id]}, - {'partner_id': self.partner_1.id, 'debit': 21.0, 'credit': 0.0, 'tax_line_id': self.tax21.id}, - {'partner_id': self.partner_1.id, 'debit': 0.0, 'credit': 121.0}, + {'partner_id': self.partner_1.id, 'debit': 100.0, 'credit': 0.0, 'tax_ids': [self.tax21.id], 'tax_line_id': False}, + {'partner_id': self.partner_1.id, 'debit': 21.0, 'credit': 0.0, 'tax_ids': [], 'tax_line_id': self.tax21.id}, + {'partner_id': self.partner_1.id, 'debit': 0.0, 'credit': 121.0, 'tax_ids': [], 'tax_line_id': False}, ]) def test_reverted_move_matching(self): |
