Skip to content

Commit

Permalink
Try to reproduce Truelite#33. Refs: Truelite#33
Browse files Browse the repository at this point in the history
  • Loading branch information
spanezz committed Feb 23, 2023
1 parent e943cab commit a6142f6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_fattura.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,23 @@ def test_build_dati_riepilogo_natura(self):
a38.DatiRiepilogo(
aliquota_iva="22", imponibile_importo="8", imposta="1.76", esigibilita_iva="I", natura="N1"))

def test_build_dati_riepilogo_natura_issue33(self):
self.maxDiff = None

o = a38.DatiBeniServizi()
o.add_dettaglio_linee(
descrizione="Bollo", quantita=1, unita_misura="EUR",
prezzo_unitario="2", aliquota_iva="0.00", natura="N1")
o.build_dati_riepilogo()

self.assertEqual(o.dati_riepilogo[0].natura, "N1")

from a38.validation import Validation
res = Validation()
o.validate(res)
self.assertEqual(res.warnings, [])
self.assertEqual(res.errors, [])


class TestFatturaElettronicaBody(TestFatturaMixin, TestCase):
def test_build_importo_totale_documento(self):
Expand Down

0 comments on commit a6142f6

Please sign in to comment.