| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/412
Closes https://github.com/arthurdejong/python-stdnum/pull/413
|
|
|
|
|
| |
If a numdb data file line contains multiple values or ranges the
sub-ranges were only applied to the last value in the range.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This ensures that matching numbers is done consistently when the numdb
database file has conflicting information about the length of numbers.
This also refactors the _find() function to be simpler and reduces the
number of recursive calls that have to be done.
The tests have been re-formatted to use pprint to make it easier to spot
differences if any of the tests fail (instead of just saying expected
True, got False).
Closes https://github.com/arthurdejong/python-stdnum/issues/257
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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 ensures that the file is explicitly closed in the function to avoid
"unclosed file" warnings.
See: https://github.com/arthurdejong/python-stdnum/issues/33
|
|
|
|
|
|
|
| |
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 places the test database file in the tests directory.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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@158 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
expected to be covered
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@156 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@76 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@69 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@60 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@50 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
return the part that is in the database
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@49 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@47 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
hierarchically organised numbers and switch the isbn module to use this format instead
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@42 9dea7c4f-944c-4273-ac1a-574ede026edc
|