| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This ensures that the tests fail if 100% branch coverage is not
achieved. It also adds some pragma statements for code that cannot be
covered or is Python version dependent.
Furthermore, the get_module_list() function was removed from stdnum.util
and more tests were made from stdnum.util and stdnum.numdb. The
functionality to call format() in a country-specific IBAN implementation
was also dropped because it was not used.
|
|
|
|
|
|
| |
This changes the get_vat_module() function to a more generic
get_cc_module() function so that it can also be used for other things
like IBAN checking.
|
|
|
|
| |
This fixes the initial implementation in 3f6d52a.
|
|
|
|
|
| |
This refactors out the SOAP client function that was implemented for
VIES to the stdnum.utils module.
|
|
|
|
|
|
|
| |
Ensure that regular expressions are r'' strings, avoid too long lines
and fix line wrapping. Also avoid catching toplevel Exception when
possible and use binascii for hex to binary conversion which is
available in both Python 2 and 3.
|
|
|
|
|
| |
This moves the finding of a VAT module to the util module so that it can
be more easily re-used for non-EU countries.
|
| |
|
|
|
|
| |
Some statements are not covered in Python 3 tests.
|
|
|
|
|
|
|
|
|
| |
This changes the stdnum.util.clean() method that is used by all modules
to replace alternative Unicode dashes, dots, etc. by their ASCII
equivalent so the numbers will be automatically converted and validated.
Inspiration for this change came from
https://github.com/JNRowe/pyisbn/pull/6
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Generating the docstring dynamically results in all stdnum modules being
imported for every import from any stdnum module which is a performance hit.
So we switch back to a manually generated list, using:
from stdnum.util import get_module_list
print '\n'.join(get_module_list())
This also shortens a few short descriptions to attempt to fit things on
one line.
|
|
|
|
| |
This mechanism should work from Python 2.6 up to and including Python 3.3.
|
|
|
|
|
|
| |
introspection of the modules
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@176 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
usable format
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@150 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@126 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
digits in a number
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@113 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
functions (for now clean())
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@100 9dea7c4f-944c-4273-ac1a-574ede026edc
|