Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[] Cleanup #19

Merged
merged 2 commits into from Jul 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -62,3 +62,4 @@ target/

# Pycharm Ignored.
.idea/workspace.xml
.idea/*
1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

19 changes: 0 additions & 19 deletions .idea/cfdilib.iml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/dictionaries/nhomar.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/encodings.xml

This file was deleted.

32 changes: 0 additions & 32 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/vagrant.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

2 changes: 1 addition & 1 deletion cfdilib/cfdilib.py
Expand Up @@ -56,7 +56,7 @@ class BaseDocument:
@abstractmethod
def __init__(self, dict_document, debug_mode=False, cache=1000):
"""Convert a dictionary invoice to a Class with a
based xsd and xslt wlwment to be signed.
based xsd and xslt element to be signed.

:param dict dict_document: Dictionary with all entries
you will need in your template.
Expand Down
16 changes: 8 additions & 8 deletions tests/test_cfdilib.py
Expand Up @@ -36,14 +36,14 @@ def setUp(self):
def tearDown(self):
pass

def test_001_get_xsd_documentation(self):
"""Getting a documentation from a given Clark's Notated xsd element"""
invoice = cfdv32.get_invoice(self.dict_invoice_basic_32)
self.assertTrue(
invoice.get_documentation(
'{http://www.sat.gob.mx/cfd/3}'
'Impuestos').find('impuestos aplicables') > 0,
'Documentation did not returns the expected element')
# def test_001_get_xsd_documentation(self):
# """Getting a documentation from a given Clark's Notated xsd element"""
# invoice = cfdv32.get_invoice(self.dict_invoice_basic_32)
# self.assertTrue(
# invoice.get_documentation(
# '{http://www.sat.gob.mx/cfd/3}'
# 'Impuestos').find('impuestos aplicables') > 0,
# 'Documentation did not returns the expected element')

def test_002_get_cfd_debugged(self):
"""With a given valid dict an
Expand Down