| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/57
|
|
|
|
| |
This adds validation of the Chemical Abstracts Service Registry Number.
|
|
|
|
|
|
| |
Also add a few verified correct numbers.
Fixes b7b812c.
|
|
|
|
| |
This adds validation of serial numbers that appear on Euro bills.
|
|
|
|
|
|
| |
These tests are not normally run as part of the normal test suite and
have to be explicitly enabled by setting the ONLINE_TESTS environment
variable to avoid overloading these online services.
|
|
|
|
|
|
| |
This adds functions for querying the Dirección General de Impuestos
Internos (DGII) API to check if the RNC and NCF combination provided is
valid.
|
|
|
|
|
|
| |
This adds functions for querying the Dirección General de Impuestos
Internos (DGII) API to validate the RNC and search the register by
keyword.
|
|
|
|
|
| |
This number does not have a check digit but uses a distinctive enough
format that it should not be too great of a problem.
|
|
|
|
|
|
| |
Some RNCs are apparently valid while having an incorrect check digit
(though most appear to be inactive). There also appear to be valid RNCs
that do not have 9 digits.
|
|
|
|
|
|
| |
These numbers were found to be valid but had an invalid check digit
nonetheless (though most appear to be inactive). Also there appear to be
a few valid Cedula that do not have 11 digits.
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/54
|
|
|
|
|
|
|
|
| |
This fixes a bug in the check digit calculation for the 9-digit numbers
that start with a 6 for individuals without a RČ. This also adds a few
tests for Czech VAT numbers.
See https://github.com/arthurdejong/python-stdnum/issues/51
|
|
|
|
|
|
|
|
|
| |
This is based on what was done by Mohammed Salman of Holvi. This adds
more tests and validates the check digit.
This uses the check digit algorithm from Isikukood which seems to work
with all tested numbers although there is no confirmation that this is
the correct algorithm.
|
| |
|
|
|
|
|
|
| |
This ensures that an InvalidComponent() exception is raised when an
unknown EAN bookland code is found. It will also raise this exception
when using to_isbn10() when not using the 978 code.
|
|
|
|
|
|
|
|
|
|
|
| |
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 adds a number of ISBNs found online from various sources to the
test suite.
|
|
|
|
| |
This also adds the test that an ISMN should start with 9790.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This tests a few unicode strings and fixes a bug in the MEID module.
|
|
|
|
|
|
|
|
|
|
|
| |
This supports the Referencia Catastral with an Ñ in it for both byte
strings (Python 2) and unicode strings (Python 2 and 3). Support for
literal unicode strings in Python 2 doctests is flaky so the test is a
bit ugly.
This also adds a few numbers that were found online. Sadly no real
numbers with an Ñ in it have been found so the one in the test was
constructed.
|
|
|
|
|
| |
This number is used to classify business. Validation is done based on a
downloaded registry.
|
|
|
|
|
|
|
| |
The number uses the French TVA number but, unlike normal French VAT
numbers, they are not valid French SIREN numbers.
See https://github.com/arthurdejong/python-stdnum/issues/46
|
|
|
|
| |
See https://github.com/arthurdejong/python-stdnum/issues/43
|
|
|
|
|
| |
This also brings the list of Python versions in setup.py in line with
tox.ini.
|
|
|
|
|
|
| |
This removes the Costa Rica IBAN test because the format of the IBAN
seems to have been changed. The old length still seems to be in use so a
more permanent solution is probably required.
|
|
|
|
|
|
|
| |
Based on the implementation provided by Vincent Bastos
<vincent@lavalab.com.au>
See https://github.com/arthurdejong/python-stdnum/pull/40
|
|
|
|
|
|
|
| |
Based on the implementation provided by Vincent Bastos
<vincent@lavalab.com.au>
See https://github.com/arthurdejong/python-stdnum/pull/40
|
|
|
|
|
|
|
| |
Based on the implementation provided by Vincent Bastos
<vincent@lavalab.com.au>
See https://github.com/arthurdejong/python-stdnum/pull/40
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a number of extra tests for the Spanish Referencia Catastral
(stdnum.es.referenciacatastral) module, mostly based on numbers found
online.
This commit includes some of the documentation on the structure of
Referencia Catastral that was in the original pull request.
See https://github.com/arthurdejong/python-stdnum/pull/38
|
| |
|
|
|
|
| |
This validates the country-specific part of the IBAN.
|
| |
|
|
|
| |
This is a generic check digit algorithm.
|
|
|
|
|
|
|
|
| |
This adds tests for a few numbers that have been found online and allows
the dot as a seprator because those numbers were found.
It also ensures that the SIREN validation is also called for SIRET and
adds a SIRET formatting function.
|
|
|
|
|
| |
This moves a few of the tests from the module to a dedicated test file
and adds tests for a number of ISIL numbers found online.
|
|
|
|
|
|
|
| |
The validation was delegated to the EAN module but the number is
supposed to be an EAN-13 only and and EAN-8 was also accepted.
This also reformats the docstring.
|
|
|
|
|
|
|
|
|
|
|
| |
The last digits of the number that should be letters were not tested to
be letters which could result in ValueError being raised for certain
validations.
This also clarifies the documentation and adds a convert() function to
convert numbers from the old format (where the second character would be
a letter or symbol) to the new format (7 digits followed by 1 or 2
letters).
|
|
|
|
|
| |
This includes a formatting fix and removes an unused variable from a
test.
|
| |
|
|
|
|
|
|
|
|
| |
There is an online service that allows validating RFC numbers. It seems
there are a lot of numbers that do not match the check digit algorithm
which confirms disabling the check digit test by default is a good idea.
Also see https://github.com/arthurdejong/python-stdnum/issues/32
|
|
|
|
|
|
|
| |
Bug fix for when the checksum is 10, it was compared to 0 and failed.
New doctest exposing the bug that passes after the fix is applied.
See: https://github.com/arthurdejong/python-stdnum/pull/30
|
|
|
|
|
| |
The format itself is pretty simple (no check digit) but this module is
more for completeness sake.
|
| |
|
|
|
|
| |
This places the test database file in the tests directory.
|