lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 2.2-12-g006192e

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 2.2-12-g006192e



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  006192e59be8ed6e08fd680256868a6c31eb2ba9 (commit)
      from  5fd7498d8daa76277ea748d284c909bd38e5383f (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=006192e59be8ed6e08fd680256868a6c31eb2ba9

commit 006192e59be8ed6e08fd680256868a6c31eb2ba9
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sat Aug 15 18:18:59 2026 +0200

    Add test for duplicate country codes in vatin
    
    Related to https://github.com/arthurdejong/python-stdnum/issues/420

diff --git a/tests/test_vatin.doctest b/tests/test_vatin.doctest
index 1c65db3..ca8becb 100644
--- a/tests/test_vatin.doctest
+++ b/tests/test_vatin.doctest
@@ -102,3 +102,9 @@ Check for VAT numbers that cannot be compacted without EU 
prefix:
 True
 >>> vatin.compact('EU191849184')
 'EU191849184'
+
+
+Check seemingly double country codes are handled correctly:
+
+>>> vatin.validate('MX MXDE 111111 GR2')  # the second "MX" is part of the 
number
+'MXMXDE111111GR2'

-----------------------------------------------------------------------

Summary of changes:
 tests/test_vatin.doctest | 6 ++++++
 1 file changed, 6 insertions(+)


hooks/post-receive
-- 
python-stdnum