python-stdnum branch master updated. 1.17-31-ge40c827
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
python-stdnum branch master updated. 1.17-31-ge40c827
- 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.17-31-ge40c827
- Date: Mon, 15 Aug 2022 18:00:31 +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 e40c827aa360441466e1257c3958f1b26490018b (commit)
via 5bcc460af0f0bdd60daeda5a977a75d8f361b2b8 (commit)
from ee9dfdf3295e651c2cf168df7d45d7a9b22b2d14 (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=e40c827aa360441466e1257c3958f1b26490018b
commit e40c827aa360441466e1257c3958f1b26490018b
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Mon Aug 15 17:59:00 2022 +0200
Update EU VAT Vies test with new number
The number used before was apparently no longer valid.
diff --git a/tests/test_eu_vat.py b/tests/test_eu_vat.py
index ff0f5dc..84eebf4 100644
--- a/tests/test_eu_vat.py
+++ b/tests/test_eu_vat.py
@@ -38,12 +38,14 @@ class TestVies(unittest.TestCase):
def test_check_vies(self):
"""Test stdnum.eu.vat.check_vies()"""
- result = vat.check_vies('BE555445')
- self.assertEqual(result['countryCode'], 'BE')
- self.assertEqual(result['vatNumber'], '555445')
+ result = vat.check_vies('NL4495445B01')
+ self.assertTrue(result['valid'])
+ self.assertEqual(result['countryCode'], 'NL')
+ self.assertEqual(result['vatNumber'], '004495445B01')
def test_check_vies_approx(self):
"""Test stdnum.eu.vat.check_vies_approx()"""
- result = vat.check_vies_approx('BE555445', 'BE555445')
- self.assertEqual(result['countryCode'], 'BE')
- self.assertEqual(result['vatNumber'], '555445')
+ result = vat.check_vies_approx('NL4495445B01', 'NL4495445B01')
+ self.assertTrue(result['valid'])
+ self.assertEqual(result['countryCode'], 'NL')
+ self.assertEqual(result['vatNumber'], '004495445B01')
https://arthurdejong.org/git/python-stdnum/commit/?id=5bcc460af0f0bdd60daeda5a977a75d8f361b2b8
commit 5bcc460af0f0bdd60daeda5a977a75d8f361b2b8
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Mon Aug 15 17:51:54 2022 +0200
Fix German OffeneRegister company registry URL
diff --git a/stdnum/de/handelsregisternummer.py
b/stdnum/de/handelsregisternummer.py
index c1848dc..5e90c78 100644
--- a/stdnum/de/handelsregisternummer.py
+++ b/stdnum/de/handelsregisternummer.py
@@ -2,7 +2,7 @@
# coding: utf-8
#
# Copyright (C) 2015 Holvi Payment Services Oy
-# Copyright (C) 2018-2019 Arthur de Jong
+# Copyright (C) 2018-2022 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -322,7 +322,7 @@ def is_valid(number):
# The base URL for performing lookups
-_offeneregister_url = 'https://db.offeneregister.de/openregister-ef9e802.json'
+_offeneregister_url = 'https://db.offeneregister.de/openregister.json'
def check_offeneregister(number, timeout=30): # pragma: no cover (not part of
normal test suite)
-----------------------------------------------------------------------
Summary of changes:
stdnum/de/handelsregisternummer.py | 4 ++--
tests/test_eu_vat.py | 14 ++++++++------
2 files changed, 10 insertions(+), 8 deletions(-)
hooks/post-receive
--
python-stdnum
- python-stdnum branch master updated. 1.17-31-ge40c827,
Commits of the python-stdnum project