Browse Source

Merge pull request #9 from loggi/resolve-fork

Improving idiom of template path
pull/273/head
Isabela Morais 6 years ago
committed by GitHub
parent
commit
bec0b06368
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tests/test_nfse_paulistana_email_tomador.py
  2. 3
      tests/test_nfse_paulistana_endereco_tomador.py
  3. 2
      tests/test_nfse_paulistana_para_lote.py
  4. 2
      tests/test_nfse_paulistana_tipo_cpfcnpj.py
  5. 3
      tests/test_nfse_paulistana_valores_default.py

3
tests/test_nfse_paulistana_email_tomador.py

@ -1,10 +1,11 @@
# coding=utf-8 # coding=utf-8
import unittest import unittest
import os.path
from pytrustnfe.xml import render_xml, sanitize_response from pytrustnfe.xml import render_xml, sanitize_response
from tests.const import NFSE, DEFAULT_RPS from tests.const import NFSE, DEFAULT_RPS
template_path = 'pytrustnfe/nfse/paulistana/templates'
template_path = os.path.join(os.path.dirname(__file__), '..', 'pytrustnfe', 'nfse', 'paulistana', 'templates')
def _get_nfse(lista_rps): def _get_nfse(lista_rps):

3
tests/test_nfse_paulistana_endereco_tomador.py

@ -1,13 +1,14 @@
# coding=utf-8 # coding=utf-8
import unittest import unittest
import os.path
from pytrustnfe.xml import render_xml, sanitize_response from pytrustnfe.xml import render_xml, sanitize_response
from tests.const import NFSE, DEFAULT_RPS from tests.const import NFSE, DEFAULT_RPS
attrs = ['TipoLogradouro', 'Logradouro', 'NumeroEndereco', 'ComplementoEndereco', 'Bairro', 'CEP'] attrs = ['TipoLogradouro', 'Logradouro', 'NumeroEndereco', 'ComplementoEndereco', 'Bairro', 'CEP']
template_path = 'pytrustnfe/nfse/paulistana/templates'
template_path = os.path.join(os.path.dirname(__file__), '..', 'pytrustnfe', 'nfse', 'paulistana', 'templates')
def _get_nfse(lista_rps): def _get_nfse(lista_rps):

2
tests/test_nfse_paulistana_para_lote.py

@ -14,7 +14,7 @@ def _get_nfse():
class test_nfse_paulistana_para_lote(unittest.TestCase): class test_nfse_paulistana_para_lote(unittest.TestCase):
xml_path = os.path.join(os.path.dirname(__file__), 'XMLs') xml_path = os.path.join(os.path.dirname(__file__), 'XMLs')
template_path = 'pytrustnfe/nfse/paulistana/templates'
template_path = os.path.join(os.path.dirname(__file__), '..', 'pytrustnfe', 'nfse', 'paulistana', 'templates')
BATCH_SIZE = len(LOTE_RPS) BATCH_SIZE = len(LOTE_RPS)
def test_envio_nfse(self): def test_envio_nfse(self):

2
tests/test_nfse_paulistana_tipo_cpfcnpj.py

@ -5,7 +5,7 @@ import unittest
from pytrustnfe.xml import render_xml, sanitize_response from pytrustnfe.xml import render_xml, sanitize_response
from tests.const import DEFAULT_RPS, NFSE from tests.const import DEFAULT_RPS, NFSE
template_path = 'pytrustnfe/nfse/paulistana/templates'
template_path = os.path.join(os.path.dirname(__file__), '..', 'pytrustnfe', 'nfse', 'paulistana', 'templates')
def _get_nfse(tipo_cpfcnpj): def _get_nfse(tipo_cpfcnpj):

3
tests/test_nfse_paulistana_valores_default.py

@ -25,8 +25,7 @@ def _get_nfse():
class test_nfse_paulistana_valores_default(unittest.TestCase): class test_nfse_paulistana_valores_default(unittest.TestCase):
template_path = 'pytrustnfe/nfse/paulistana/templates'
xml_path = os.path.join(os.path.dirname(__file__), 'XMLs')
template_path = os.path.join(os.path.dirname(__file__), '..', 'pytrustnfe', 'nfse', 'paulistana', 'templates')
nfse = _get_nfse() nfse = _get_nfse()
def test_rps_sem_valores(self): def test_rps_sem_valores(self):

Loading…
Cancel
Save