Skip to content

Commit

Permalink
updated test requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
satcfdi committed Apr 11, 2024
1 parent db1e20c commit be711f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions satcfdi/accounting/contabilidad.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ def validate_cuentas(cuentas):
else:
v['Nivel'] = 1

v['CodAgrup'] = catalog_code('Cb9f_c_CodAgrup', v['CodAgrup'])
assert v['CodAgrup'].description, f"Unknown CodAgrup: {v['CodAgrup']}"
if isinstance(v['CodAgrup'], str):
v['CodAgrup'] = catalog_code('Cb9f_c_CodAgrup', v['CodAgrup'])
assert v['CodAgrup'].description, f"Unknown CodAgrup: {v['CodAgrup']}"

for k, v in cuentas.items():
if v['SubCtaDe']:
Expand Down

0 comments on commit be711f8

Please sign in to comment.