Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Add Costa Rica Cédula de IdentidadLeandro Regueiro2019-06-241-0/+207
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/139
* Add Costa Rica TIN numberLeandro Regueiro2019-06-241-0/+275
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/109
* Add South Africa TIN numberLeandro Regueiro2019-06-221-0/+65
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/129 Closes https://github.com/arthurdejong/python-stdnum/issues/108
* Add Paraguay RUC numberLeandro Regueiro2019-06-161-0/+261
| | | | | | | | This supports RUC number validation of rphysical persons, non-juridical persons and foreigners. Closes https://github.com/arthurdejong/python-stdnum/issues/122 Closes https://github.com/arthurdejong/python-stdnum/pull/123
* Add Uruguay RUT numberLeandro Regueiro2019-06-141-0/+275
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/121 Closes https://github.com/arthurdejong/python-stdnum/issues/110
* Fix handelsregisternummer to not turn Hamburg into HomburgArthur de Jong2019-06-141-1/+7
| | | | | | | | | | | This changes the minimisation function that is used for comparison and canonicalisation to not reduce Hamburg and Homburg to the same string. This makes the function slightly more strict in which encoding differences to accept. This also adds a few aliases to the court names. Closes https://github.com/arthurdejong/python-stdnum/issues/136
* Support Dominican Republic e-CF within NCFJeffry Jesus De La Rosa2019-06-141-3/+19
| | | | | | | | e-CF is the new way of DGII document, is the same as NCF, but the difference one to another, is that e-CF has 13 digit and is electronic invoice, with this change it will validate the correct NCF and e-CF. Closes https://github.com/arthurdejong/python-stdnum/pull/135
* Add New Zealand IRD numberLeandro Regueiro2019-06-091-0/+68
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/112 Closes https://github.com/arthurdejong/python-stdnum/issues/104
* Add Vergi Kimlik NumarasıArthur de Jong2019-06-021-0/+234
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/99
* Add Venezuelan RIF (VAT number)Arthur de Jong2019-05-121-0/+258
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/97
* Fix remaining issue with encodingArthur de Jong2019-05-041-3/+4
| | | | | | | This also sets the python 2.6 interpreter explicityly because sometimes tox seems to get the wrong one. Fixes 680a95f
* Re-add Python 2.6 supportArthur de Jong2019-04-301-2/+2
| | | | Fixes 48ff92e
* Convert various reasonable unicode digitsArthur de Jong2019-04-291-1/+1
| | | | | This converts many of the "reasonable" unicode digits that are just variations on ASCII 0-9 to their ASCII counterparts.
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-294-9/+42
| | | | | | | | | | | The problem with the latter is that it will also accept all kinds of unicode digits that are not the ASCII 0-9 digits causing all kinds of problems in check digit calculations. Some of these unicode characters are also considered digits by int() but some are not (such as the SUPERSCRIPT TWO unicode character). Closes https://github.com/arthurdejong/python-stdnum/issues/96
* Add Peruvian CUI (DNI)Arthur de Jong2019-03-241-0/+89
|
* Add Peruvian RUCArthur de Jong2019-03-241-0/+171
|
* Add New Zealand bank account numberArthur de Jong2019-03-101-0/+163
|
* Add Moldavian IDNOArthur de Jong2019-03-031-0/+235
|
* Add more tests for Bulgarian EGNArthur de Jong2019-03-031-0/+42
|
* Rename MAC check_manufacturer to validate_manufacturerArthur de Jong2019-03-031-2/+2
| | | | | For consistency with the other validation modules that have an extra argument to disable or enable certain parts of the validation.
* Add Lithuanian Asmens kodasArthur de Jong2019-03-031-0/+51
|
* Add Greek AMKA social security numberArthur de Jong2019-03-031-0/+147
|
* Add Mexican CURPArthur de Jong2019-02-061-0/+118
|
* Add MAC addressArthur de Jong2018-12-291-0/+104
| | | | | | | | This adds validation of MAC (Ethernet) addresses. It will perform lookups in the IEEE registry for manufacturer names for universally administered addresses. Closes https://github.com/arthurdejong/python-stdnum/issues/93
* Add Swedish PersonnummerIlya Vihtinsky2018-12-241-0/+77
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/88
* Add Norwegian FødselsnummerIlya Vihtinsky2018-12-241-0/+112
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/88
* Raise InvalidComponent on unknown IBAN countryArthur de Jong2018-10-141-1/+9
| | | | | | This partially reverts 58ea7b2. Closes https://github.com/arthurdejong/python-stdnum/issues/82
* Fix issue with minimal IBANArthur de Jong2018-10-091-0/+9
| | | | | | | | This ensures that an IBAN with a missing bban part and unknown country code (while still having a valid MOD 97,10 checksum) is considered valid. Closes https://github.com/arthurdejong/python-stdnum/issues/84
* Bitcoin addressArthur de Jong2018-09-301-0/+119
| | | | | | | This adds validation of Bitcoin addresses. No check is done that the addresses actually exist but only that they are syntactically correct. Closes https://github.com/arthurdejong/python-stdnum/issues/80
* Fix ES test descriptionsGerard Dalmau2018-08-302-2/+2
|
* Improve CIF and NIF validationGerard Dalmau2018-08-301-0/+57
| | | | | | | | NIF starting with K, L or M are NIF instead of CIF. This also adds NIF-DNI-CIF-NIE classification tests. Closes https://github.com/arthurdejong/python-stdnum/pull/81
* Add Norwegian bank account numberArthur de Jong2018-08-221-0/+45
| | | | | | | This includes validation of Norwegian bank account numbers and conversion to IBAN. Closes https://github.com/arthurdejong/python-stdnum/issues/79
* Add Mauritian national ID numberArthur de Jong2018-08-081-0/+94
| | | | | | | Thans to Bradley Smith for providing the needed information to implement this. See https://lists.arthurdejong.org/python-stdnum-users/2018/msg00003.html
* Add iso11649 structured creditor referenceEsben Toke Christensen2018-07-221-0/+139
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/72
* Switch the NCF online check to the new formArthur de Jong2018-05-191-3/+14
| | | | | | | This tries to screen-scrape the new DGII form that is used to validate the new format of NCF numbers. Closes https://github.com/arthurdejong/python-stdnum/issues/71
* Fix an issue with format of Mexican tax numbersArthur de Jong2018-05-011-0/+8
| | | | | Fix an issue where the format accepted a mix of personal and company numberer in validation causing in a raised ValueError exception.
* Make unicode conversion standardArthur de Jong2018-05-011-1/+15
| | | | | | A few modules use non-ASCII characters in numbers. This introduces a to_unicode() function in util so that it can be used by multiple modules.
* Add an extra test for Belgian IBANsArthur de Jong2018-04-121-0/+11
| | | | | A Belgian IBAN should not end with 00. This also fixes a docstring and comment in the IBAN module.
* Correctly split IMSI with multi-length MNCArthur de Jong2018-04-101-0/+44
| | | | | | | | | | | | Ensures that imsi.split() will correctly split the IMSI into an MCC, MNC and MSIN even if not all MNCs within a single MCC have the same length. This has the downside of not being able to guess the MNC length in some cases. This also omits empty information from the data file and updates the data file from Wikipedia. Closes https://github.com/arthurdejong/python-stdnum/issues/68
* Add Financial Instrument Global IdentifierArthur de Jong2018-03-251-0/+161
|
* Add German company registry numbersArthur de Jong2018-03-231-0/+207
| | | | | Based on the implementation provided by Markus Törnqvist and Lari Haataja of Holvi Payment Services.
* Add Austrian AbgabenkontonummerArthur de Jong2018-03-181-0/+195
| | | | | | Based on the implementation provided by Mohammed Salman of Holvi. Closes https://github.com/arthurdejong/python-stdnum/pull/50
* Add support for Montenegro IBAN formatArthur de Jong2018-03-171-0/+7
| | | | | This adds further checks to the country-specific part of the IBAN for Montenegro IBANs.
* Add German SteuernummerArthur de Jong2018-03-111-0/+193
| | | | | | | | | | Based on the implementation provided by Mohammed Salman of Holvi. This is the old tax number that is being replaced by the Steuerliche Identifikationsnummer. The number has a regional form (which is used most often) and a national form. Closes https://github.com/arthurdejong/python-stdnum/pull/49
* Add validation for "individual" part of hetuEsa Halsti2018-03-111-2/+6
| | | | | | | The range between 900 and 999 is reserved for temporary identifiers and is not given to any real person. Closes https://github.com/arthurdejong/python-stdnum/pull/66
* Add check_dgii() to stdnum.do.cedula moduleArthur de Jong2018-02-191-0/+55
| | | | | | | This exposes the stdnum.do.rnc.check_dgii() in the stdnum.do.cedula module with but rename the rnc result entry to cedula. Closes https://github.com/arthurdejong/python-stdnum/issues/63
* Update the flake8 ignore listArthur de Jong2018-02-142-2/+0
| | | | | | | | | | | | Re-enable the flake8 test for unused imports by explicitly marking imports for namespace purposes. This allows us to remove a few unused imports. A few more cleanups that allow us to reduce the number of ignored flake8 ignored tests. The remaining ignored tests are now documented. Ignore a flake8 warning about print statements because we use print in the update scripts.
* Add test for Belgian IBANsArthur de Jong2018-02-111-0/+158
| | | | | | | | | This adds a test for IBANs that were found online together with a BIC code to test the IBAN to swift code mapping. This also supports some extra separators in IBAN and BIC numbers and fixes a check digit calculation issue in the Belgian account number check digits.
* Add support for Belgian IBAN formatArthur de Jong2018-02-101-2/+0
| | | | | | | This adds further checks to the country-specific part of the IBAN for Belgian IBANs. Closes https://github.com/arthurdejong/python-stdnum/issues/62
* Add Indian PANsrikanthlogic2018-01-011-0/+40
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/57