Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update database filesArthur de Jong2024-03-171-9/+0
| | | | | | | | | | | | | | The Belgian bpost bank no longer has a registration and a few bank account numbers in the tests that used that bank were removed. Also updates the update/gs1_ai.py script to handle the new format of the data published by GS1. Also update the GS1-128 module to handle some different date formats. The Pakistan entry was kept in the stdnum/iban.dat file because the PDF version of the IBAN Registry still contains the country. fix db
* Fix Ukrainian EDRPOU check digit calculationArthur de Jong2024-03-171-0/+7
| | | | | | | This fixes the case where the weighted sum woud be 10 which should result in a check digit of 0. Closes https://github.com/arthurdejong/python-stdnum/issues/429
* Fix vatin number compacting for "EU" VAT numbersArthur de Jong2024-02-031-1/+9
| | | | | | Thanks Davide Walder for finding this. Closes https://github.com/arthurdejong/python-stdnum/issues/427
* Add European Community (EC) NumberDaniel Weber2023-12-031-0/+197
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/422
* Ensure EU VAT numbers don't accept duplicate country codesArthur de Jong2023-11-121-1/+39
|
* Avoid the deprecated assertRegexpMatches functionArthur de Jong2023-08-201-4/+10
|
* Update Belarusian UNP online checkArthur de Jong2023-08-201-13/+13
| | | | | | The API for the online check for Belarusian UNP numbers at https://www.portal.nalog.gov.by/grp/getData has changed some small details of the API.
* Replace test number for German company registryArthur de Jong2023-08-201-1/+1
| | | | The number seems to be no longer valid breaking the online tests.
* Update database filesArthur de Jong2023-08-201-1/+0
| | | | | | | | This also modifies the OUI update script because the website has changed to HTTPS and is sometimes very slow. The Belgian Commerzbank no longer has a registration and a bank account number in the tests used that bank.
* Validate European VAT numbers with EU or IM prefixArthur de Jong2023-08-132-0/+70
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/417
* Add Slovenian Corporate Registration NumberBlaž Bregar2023-08-061-0/+123
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/414
* Fix file headersArthur de Jong2023-08-067-7/+7
| | | | | This improves consistency across files and fixes some files that had an incorrect file name reference.
* Add Belgian BIS NumberJeff Horemans2023-06-252-0/+144
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/418
* Handle (partially) unknown birthdate of Belgian National ↵Jeff Horemans2023-06-191-2/+47
| | | | | | | | | | Number This adds documentation for the special cases regarding birth dates embedded in the number, allows for date parts to be unknown and adds functions for getting the year and month. Closes https://github.com/arthurdejong/python-stdnum/pull/416
* Add support for Guinea TINLeandro Regueiro2023-05-121-0/+157
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/384 Closes https://github.com/arthurdejong/python-stdnum/pull/386
* Add support for Finland HETU new century indicating signsmjturt2023-04-291-0/+8
| | | | | | More information at https://dvv.fi/en/reform-of-personal-identity-code Cloess https://github.com/arthurdejong/python-stdnum/pull/396
* Add functionality to get gender from Belgian National NumberJeff Horemans2023-04-291-0/+6
| | | | | | This also extends the documentation for the number. Closes https://github.com/arthurdejong/python-stdnum/pull/347/files
* Extend date parsing in GS1-128Arthur de Jong2023-03-181-0/+12
| | | | | Some new AIs have new date formats or have changed the way optional components of formats are defined.
* Fix Albanian tax number validationArthur de Jong2023-03-181-81/+39
| | | | | | | | | | | | | | | This extends the description of the Albanian NIPT (NUIS) number with information on the structure of the number. The first character was previously limited between J and L but this letter indicates a decade and the number is also used for individuals to where it indicates a birth date. Thanks Julien Launois for pointing this out. Source: https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Albania-TIN.pdf Fixes 3db826c Closes https://github.com/arthurdejong/python-stdnum/pull/402
* Add support for Egypt TINLeandro Regueiro2023-01-021-0/+171
| | | | | | | This also convertis Arabic digits to ASCII digits. Closes https://github.com/arthurdejong/python-stdnum/issues/225 Closes https://github.com/arthurdejong/python-stdnum/pull/334
* Update German OffeneRegister lookup data formatArthur de Jong2022-11-131-1/+1
| | | | | It appears that the data structure at OffeneRegister has changed which requires a different query. Data is returned in a different structure.
* vatin: Add a few more tests for is_validLeandro Regueiro2022-11-131-0/+18
| | | | See https://github.com/arthurdejong/python-stdnum/pull/316
* Add Pakistani ID card numberArthur de Jong2022-11-131-0/+40
| | | | | | | | Based on the implementation provided by Quantum Novice (Syed Haseeb Shah). Closes https://github.com/arthurdejong/python-stdnum/pull/306 Closes https://github.com/arthurdejong/python-stdnum/issues/304
* Add support for Slovenian EMŠO (Unique Master Citizen ↵Blaž Bregar2022-11-131-0/+76
| | | | | | Number) Closes https://github.com/arthurdejong/python-stdnum/pull/338
* Add a check_uid() function to the stdnum.ch.uid moduleArthur de Jong2022-11-121-0/+45
| | | | | | | This function can be used to performa a lookup of organisation information by the Swiss Federal Statistical Office web service. Related to https://github.com/arthurdejong/python-stdnum/issues/336
* Support "I" and "O" in CUSIP numberArthur de Jong2022-11-121-111/+7
| | | | | | | | | It is unclear why these letters were considered invalid at the time of the implementation. This also reduces the test set a bit while still covering most cases. Closes https://github.com/arthurdejong/python-stdnum/issues/337
* Update Fødselsnummer test case for date in futureArthur de Jong2022-10-191-2/+2
| | | | The future was now. This problem was pushed forwards to October 2039.
* Add support for Ghana TINLeandro Regueiro2022-10-151-0/+104
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/326 Closes https://github.com/arthurdejong/python-stdnum/issues/262
* Add support for Montenegro TINLeandro Regueiro2022-10-091-0/+180
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/331 Closes https://github.com/arthurdejong/python-stdnum/issues/223
* Add Faroe Islands V-numberLeandro Regueiro2022-09-251-0/+167
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/323 Closes https://github.com/arthurdejong/python-stdnum/issues/219
* Add North Macedonian ЕДБLeandro Regueiro2022-09-251-0/+178
| | | | | | | | | | | | | | Note that this is implementation is mostly based on unofficial sources describing the format, which match the hundreds of examples found online. https://forum.it.mk/threads/modularna-kontrola-na-embg-edb-dbs-itn.15663/?__cf_chl_tk=Op2PaEIauip6Z.ZjvhP897O8gRVAwe5CDAVTpjx1sEo-1663498930-0-gaNycGzNCRE#post-187048 Also note that the algorithm for the check digit was tested on all found examples, and it doesn't work for all of them, despite those failing examples don't seem to be valid according to the official online search. Closes https://github.com/arthurdejong/python-stdnum/pull/330 Closes https://github.com/arthurdejong/python-stdnum/issues/222
* Add Algerian NIF numberLeandro Regueiro2022-09-241-0/+159
| | | | | | | | | This currently only checks the length and whether it only contains digits because little could be found on the structure of the number of whether there are any check digits. Closes https://github.com/arthurdejong/python-stdnum/pull/313 Closes https://github.com/arthurdejong/python-stdnum/issues/307
* Add support for Morocco TINLeandro Regueiro2022-09-111-0/+153
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/226 Closes https://github.com/arthurdejong/python-stdnum/pull/312
* Add Kenyan TINLeandro Regueiro2022-09-111-0/+153
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/300 Closes https://github.com/arthurdejong/python-stdnum/pull/310
* Add support for Tunisia TINLeandro Regueiro2022-09-111-0/+254
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/317 Closes https://github.com/arthurdejong/python-stdnum/issues/309
* Update EU VAT Vies test with new numberArthur de Jong2022-08-151-6/+8
| | | | The number used before was apparently no longer valid.
* Add extra court alias for german HandelsregisternummerRomuald R2022-08-151-0/+1
| | | | | | | | | Charlottenburg (Berlin) is a valid court representation for Berlin (Charlottenburg). See https://www.northdata.com/VRB+Service+GmbH,+Berlin/Amtsgericht+Charlottenburg+%28Berlin%29+HRB+103587+B Closes https://github.com/arthurdejong/python-stdnum/pull/298
* Add Czech bank account numberspetr.prikryl2022-08-141-0/+59
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/295 Closes https://github.com/arthurdejong/python-stdnum/pull/296
* Support parsing dates without a day in GS1-128Alexis de Lattre2022-04-091-0/+4
| | | | | | | Date such as '(17)260400' is now properly interpreted as April 30th 2026. Closes https://github.com/arthurdejong/python-stdnum/pull/294
* Compute birth date from Belgian National NumberCédric Krier2022-03-211-0/+42
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/288
* Return check digits in 02-98 range for ISO 7064 Mod 97, 10Arthur de Jong2022-03-211-1/+12
| | | | | | | | | | There are some valid ranges for check digits within ISO 7064 Mod 97, 10 that all result in a valid checksum. This changes the calculated check digits to be in the range from 02 to 98 as is specified for use in IBAN. See https://en.wikipedia.org/wiki/International_Bank_Account_Number#Generating_IBAN_check_digits Closes https://github.com/arthurdejong/python-stdnum/pull/289
* Support special validation of La Post SIRETCédric Krier2022-03-211-0/+15
| | | | | | | See https://fr.wikipedia.org/wiki/Système_d'identification_du_répertoire_des_établissements#Exceptions_pour_le_groupe_La_Poste Closes https://github.com/arthurdejong/python-stdnum/pull/293 Closes https://github.com/arthurdejong/python-stdnum/issues/291
* Fix Python 2.7 compatibility of the testsArthur de Jong2022-02-141-18/+29
| | | | Fixes a9039c1
* Add Classification of Financial InstrumentsArthur de Jong2022-02-131-0/+175
| | | | | | | This implements parsing of ISO 10962 CFI codes based on the published description of the structure of these numbers. Closes https://github.com/arthurdejong/python-stdnum/issues/283
* Fix problem in numdb with missing sub-propertiesArthur de Jong2022-02-131-0/+1
| | | | | If a numdb data file line contains multiple values or ranges the sub-ranges were only applied to the last value in the range.
* Remove South Korean BRN online checkArthur de Jong2021-10-031-46/+0
| | | | | The Korea Fair Trade Commission website now requires solving a CAPTCHA before submitting the request so this is no longer possible.
* Update Cedula online test valueArthur de Jong2021-10-031-2/+2
| | | | | Apparently the previously whitelisted value is no longer recognised as a valid value by the DGII service.
* Fix detection of natural RUC valuesArthur de Jong2021-09-191-2/+5
| | | | | | | A natural RUC is the CI plus an establishment number. Both the natural RUC and the public RUC can have a third digit with the value 6. Closes https://github.com/arthurdejong/python-stdnum/issues/267
* Add swedish postcode validatormichele2021-09-121-0/+75
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/271
* Add support for Thai NumbersPiruin Panichphol2021-09-053-0/+272
| | | | | | | | | - TIN Taxpayer Identification Number - PIN Personal Identification Number - MOA Memorandum of Association Number Closes https://github.com/arthurdejong/python-stdnum/issues/118 Closes https://github.com/arthurdejong/python-stdnum/pull/255