details: https://code.tryton.org/tryton/commit/642c59f1f7f4
branch: default
user: Cédric Krier <[email protected]>
date: Mon Dec 08 22:59:18 2025 +0100
description:
Support a distinct VAT from the participant ID in the test scenario
diffstat:
modules/edocument_peppol_peppyrus/tests/scenario_edocument_peppol_peppyrus.rst
| 3 ++-
modules/edocument_peppol_peppyrus/tests/test_scenario.py
| 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 9b2200331d77 -r 642c59f1f7f4
modules/edocument_peppol_peppyrus/tests/scenario_edocument_peppol_peppyrus.rst
---
a/modules/edocument_peppol_peppyrus/tests/scenario_edocument_peppol_peppyrus.rst
Mon Dec 08 10:32:08 2025 +0100
+++
b/modules/edocument_peppol_peppyrus/tests/scenario_edocument_peppol_peppyrus.rst
Mon Dec 08 22:59:18 2025 +0100
@@ -19,12 +19,13 @@
>>> render = patch.object(Peppol, 'render').start()
>>> participant_scheme, participant_id = (
... os.getenv('PEPPYRUS_PARTICIPANT_ID').split(':', 1))
+ >>> participant_vat = os.getenv('PEPPYRUS_PARTICIPANT_VAT')
>>> with file_open('edocument_peppol_peppyrus/tests/invoice.xml',
mode='r') as fp:
... render.return_value = (
... fp.read()
... .replace('PARTICIPANT_SCHEME', participant_scheme)
... .replace('PARTICIPANT_ID', participant_id)
- ... .replace('PARTICIPANT_VAT', participant_id.upper())
+ ... .replace('PARTICIPANT_VAT', participant_vat.upper())
... .encode())
Activate modules::
diff -r 9b2200331d77 -r 642c59f1f7f4
modules/edocument_peppol_peppyrus/tests/test_scenario.py
--- a/modules/edocument_peppol_peppyrus/tests/test_scenario.py Mon Dec 08
10:32:08 2025 +0100
+++ b/modules/edocument_peppol_peppyrus/tests/test_scenario.py Mon Dec 08
22:59:18 2025 +0100
@@ -9,7 +9,8 @@
def load_tests(*args, **kwargs):
if (not TEST_NETWORK
or not (os.getenv('PEPPYRUS_API_KEY')
- and os.getenv('PEPPYRUS_PARTICIPANT_ID'))):
+ and os.getenv('PEPPYRUS_PARTICIPANT_ID')
+ and os.getenv('PEPPYRUS_PARTICIPANT_VAT'))):
kwargs.setdefault('skips', set()).update({
'scenario_edocument_peppol_peppyrus.rst',
})