python-stdnum branch master updated. 1.11-44-g63a643f
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
python-stdnum branch master updated. 1.11-44-g63a643f
- From: Commits of the python-stdnum project <python-stdnum-commits [at] lists.arthurdejong.org>
- To: python-stdnum-commits [at] lists.arthurdejong.org
- Reply-to: python-stdnum-users [at] lists.arthurdejong.org, python-stdnum-commits [at] lists.arthurdejong.org
- Subject: python-stdnum branch master updated. 1.11-44-g63a643f
- Date: Sun, 13 Oct 2019 22:00:50 +0200 (CEST)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".
The branch, master has been updated
via 63a643fcb2ef38d6e7cd1c24b7bf037b7145451b (commit)
via 6119590a113b23ec6266c7fdd5309297b3be68c6 (commit)
via 3aedb1f74e4ad8c35f1a230682b72bc7b222e611 (commit)
from d43ad77007cf1f4703ac5eba64894fbefd7ca3de (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=63a643fcb2ef38d6e7cd1c24b7bf037b7145451b
commit 63a643fcb2ef38d6e7cd1c24b7bf037b7145451b
Author: Andreas Häber <andreas.haber@puzzel.com>
Date: Sun Oct 13 21:16:59 2019 +0200
AU: Provide vat as alias from tfn
Closes https://github.com/arthurdejong/python-stdnum/pull/167
diff --git a/stdnum/au/__init__.py b/stdnum/au/__init__.py
index bcf9b0b..1713e56 100644
--- a/stdnum/au/__init__.py
+++ b/stdnum/au/__init__.py
@@ -19,3 +19,6 @@
# 02110-1301 USA
"""Collection of Australian numbers."""
+
+# provide aliases
+from stdnum.au import tfn as vat # noqa: F401
https://arthurdejong.org/git/python-stdnum/commit/?id=6119590a113b23ec6266c7fdd5309297b3be68c6
commit 6119590a113b23ec6266c7fdd5309297b3be68c6
Author: Andreas Häber <andreas.haber@puzzel.com>
Date: Sun Oct 13 21:14:53 2019 +0200
AT: Provide personalid as an alias from vnr
Closes https://github.com/arthurdejong/python-stdnum/pull/166
diff --git a/stdnum/at/__init__.py b/stdnum/at/__init__.py
index 9f09d71..3ee90ad 100644
--- a/stdnum/at/__init__.py
+++ b/stdnum/at/__init__.py
@@ -20,6 +20,7 @@
"""Collection of Austrian numbers."""
-# provide vat as an alias
+# provide aliases
from stdnum.at import postleitzahl as postal_code # noqa: F401
from stdnum.at import uid as vat # noqa: F401
+from stdnum.at import vnr as personalid # noqa: F401
https://arthurdejong.org/git/python-stdnum/commit/?id=3aedb1f74e4ad8c35f1a230682b72bc7b222e611
commit 3aedb1f74e4ad8c35f1a230682b72bc7b222e611
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Sun Oct 13 17:46:32 2019 +0200
Add various test numbers
diff --git a/tests/test_ar_cbu.doctest b/tests/test_ar_cbu.doctest
index 151600e..ef3aa9e 100644
--- a/tests/test_ar_cbu.doctest
+++ b/tests/test_ar_cbu.doctest
@@ -37,20 +37,98 @@ These have been found online and should all be valid
numbers.
... 0 7 2 0 1 4 6 8 2 0 0 0 0 0 0 1 0 6 2 3 4 0
... 0 7 2 0 1 6 8 0 2 0 0 0 0 0 0 1 1 8 3 2 3 6
... 0 7 2 0 3 8 0 8 8 8 0 0 0 0 3 5 5 3 3 9 6 8
+... 0070034420000002310035
+... 0070085620000002598406
+... 0070089420000002991793
... 0070090020000004146504
+... 0070109530004141775453
+... 0070114920000004100700
+... 0070274620000003448717
+... 0070999020000057705860
... 0110097630009704213797
+... 0110102320010200444955
+... 0110106130010603111097
+... 0110106130010604601847
+... 0110125220012510923535
+... 0110130620013014594573
+... 0110175730017523189801
+... 0110204030020409626051
+... 0110216320021610025999
+... 0110230930023001323933
+... 0110230930023008918451
+... 0110283520028310814652
+... 0110363020036300101822
+... 0110377720037700120402
+... 0110385220038500036492
+... 0110409120040921180719
+... 0110424420042410570553
+... 0110454130045407688379
+... 0110477020047731297428
+... 0110508720050800019135
+... 0110521620052100223696
+... 0110551320055100112719
+... 0140313601697100515896
+... 0140313601697100557414
... 0140339601630201381276
... 0140351801684605023087
+... 0140352501684700733410
+... 0140352503684700819149
+... 0140369303631000285682
+... 0140391403672850026131
+... 0140410801680000361629
+... 0140417701630000088992
+... 0140444301650700088379
+... 0140476401626402048153
+... 01505016-02000120967405
... 0168888-1-0000827441015-8
+... 0168888100000641080265
+... 0170074920000030293449
... 01703342 – 200 000 3036 7766
+... 0200306901000040010097
+... 0200348901000000334779
+... 0200398411000030044362
+... 0200405501000000213951
+... 0200451211000030033962
... 0200915901000000274233
... 03400562 00560007577005
+... 0720000720000001681136
... 0720079388000035942322
+... 0720297320000000081418
+... 0720402320000002633754
+... 0930301810100000992800
+... 0930301810100001043132
+... 0930310010100014278400
+... 0930324720100053299139
+... 0930324720100055211111
... 0940099324001313220028
... 1 5 0 0 0 0 6 0 0 0 0 0 5 6 6 0 4 4 7 2 0 0
... 1 5 0 0 0 8 7 9 - 0 0 0 5 1 3 3 2 0 7 5 1 9 - 6
... 1 9 1 0 1 1 9 6 5 5 0 1 1 9 0 1 0 8 4 6 4 6
+... 1910104255110401549353
+... 1910126455012600786400
+... 1910186855018601143246
+... 1910369755036901130632
+... 2850345330000000781858
+... 2850353830094127564171
+... 2850376730000059833142
+... 2850400530094105352671
+... 2850536730094125514871
... 2850590940090418135201
+... 2850729540000001576069
+... 2850732530000002707016
+... 2850734940094696942458
+... 2850760830094054972021
+... 2850882330094054578991
+... 3110003611000000537014
+... 3110013511000600125046
+... 3300542115420000740012
+... 3300551315510001836040
+... 3860002703000000438381
+... 3860011901000020526675
+... 3860060703000013990500
+... 5729195067928761667584
+... 7362966507842824472644
+... 9498175528566296510521
...
... '''
>>> [x for x in numbers.splitlines() if x and not cbu.is_valid(x)]
diff --git a/tests/test_ar_cuit.doctest b/tests/test_ar_cuit.doctest
index e12003a..f015374 100644
--- a/tests/test_ar_cuit.doctest
+++ b/tests/test_ar_cuit.doctest
@@ -27,9 +27,9 @@ tries to validate a number of numbers that have been found
online.
These have been found online and should all be valid numbers.
-
>>> numbers = '''
...
+... 20-10123456-9
... 20040356437
... 20047433747
... 20050573452
@@ -44,6 +44,7 @@ These have been found online and should all be valid numbers.
... 20081042404
... 20086295106
... 20086607043
+... 20101234569
... 20101376630
... 20102289855
... 20103055475
@@ -123,6 +124,7 @@ These have been found online and should all be valid
numbers.
... 20922078182
... 20922312401
... 20929597916
+... 23000052264
... 23042708194
... 23045174999
... 23081181489
@@ -141,7 +143,9 @@ These have been found online and should all be valid
numbers.
... 23338909764
... 23355601684
... 23935319099
+... 24117166062
... 24276145513
+... 27-10345678-4
... 27018259899
... 27023396861
... 27032487705
@@ -152,6 +156,7 @@ These have been found online and should all be valid
numbers.
... 27066515678
... 27066595485
... 27098767849
+... 27103456784
... 27107931738
... 27114547382
... 27121262059
@@ -211,6 +216,7 @@ These have been found online and should all be valid
numbers.
... 27938621395
... 27940212664
... 27949019387
+... 30011111110
... 30653311857
... 30670349760
... 30691769336
@@ -226,10 +232,12 @@ These have been found online and should all be valid
numbers.
... 30714322296
... 30714468088
... 30714789062
+... 33500001599
... 33534828379
... 33708972679
... 33712308589
... 33714423709
+... 34546198105
...
... '''
>>> [x for x in numbers.splitlines() if x and not cuit.is_valid(x)]
diff --git a/tests/test_au_abn.doctest b/tests/test_au_abn.doctest
index 079b0e3..41ae5ca 100644
--- a/tests/test_au_abn.doctest
+++ b/tests/test_au_abn.doctest
@@ -70,6 +70,7 @@ These have been found online and should all be valid numbers.
... 43 002 724 334
... 45138393975
... 45686492545
+... 46 0 0 2722 3 49
... 46 003 855 561
... 46 003 855 561
... 46065060376
diff --git a/tests/test_bg_vat.doctest b/tests/test_bg_vat.doctest
index 4fb1a0b..aed256b 100644
--- a/tests/test_bg_vat.doctest
+++ b/tests/test_bg_vat.doctest
@@ -49,3 +49,25 @@ Invalid checksum:
Traceback (most recent call last):
...
InvalidChecksum: ...
+
+
+These have been found online and should all be valid numbers.
+
+>>> numbers = '''
+...
+... 000565359
+... 104453698
+... 121817309
+... 121887948
+... 175015558
+... 175223064
+... 176040023
+... 202322728
+... 202342638
+... 203445228
+... 831919536
+... 835014925
+...
+... '''
+>>> [x for x in numbers.splitlines() if x and not vat.is_valid(x)]
+[]
-----------------------------------------------------------------------
Summary of changes:
stdnum/at/__init__.py | 3 +-
stdnum/au/__init__.py | 3 ++
tests/test_ar_cbu.doctest | 78 ++++++++++++++++++++++++++++++++++++++++++++++
tests/test_ar_cuit.doctest | 10 +++++-
tests/test_au_abn.doctest | 1 +
tests/test_bg_vat.doctest | 22 +++++++++++++
6 files changed, 115 insertions(+), 2 deletions(-)
hooks/post-receive
--
python-stdnum
- python-stdnum branch master updated. 1.11-44-g63a643f,
Commits of the python-stdnum project