Commit 9b8e76e5 authored by Jérome Perrin's avatar Jérome Perrin

fixup! Remove "GAP must be set on accounts" constraint from erp5_accounting.

parent 14b608f9
...@@ -244,12 +244,10 @@ class TestAccounts(AccountingTestCase): ...@@ -244,12 +244,10 @@ class TestAccounts(AccountingTestCase):
"""Tests Accounts. """Tests Accounts.
""" """
def test_AccountValidation(self): def test_AccountValidation(self):
# Accounts need a gap category and an account_type category to be valid # Accounts need an account_type category to be valid
account = self.portal.account_module.newContent(portal_type='Account') account = self.portal.account_module.newContent(portal_type='Account')
self.assertEqual(2, len(account.checkConsistency()))
account.setAccountType('equity')
self.assertEqual(1, len(account.checkConsistency())) self.assertEqual(1, len(account.checkConsistency()))
account.setGap('my_country/my_accounting_standards/1') account.setAccountType('equity')
self.assertEqual(0, len(account.checkConsistency())) self.assertEqual(0, len(account.checkConsistency()))
def test_AccountWorkflow(self): def test_AccountWorkflow(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment