summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValentin Deniaud <vdeniaud@entrouvert.com>2020-05-19 12:07:58 (GMT)
committerValentin Deniaud <vdeniaud@entrouvert.com>2020-05-19 12:59:10 (GMT)
commit6c81d9733dd8657456bd44119fb1f3fd689831bf (patch)
tree3f7fc6ea2784271ee08b561ef83e2fc55385b450
parentab3d0d150694aa6415e833562c996186767de55e (diff)
downloadeopayment-6c81d9733dd8657456bd44119fb1f3fd689831bf.zip
eopayment-6c81d9733dd8657456bd44119fb1f3fd689831bf.tar.gz
eopayment-6c81d9733dd8657456bd44119fb1f3fd689831bf.tar.bz2
dummy: extend parameters description for testing (#43030)v1.49
-rw-r--r--eopayment/dummy.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/eopayment/dummy.py b/eopayment/dummy.py
index e823f12..cf36690 100644
--- a/eopayment/dummy.py
+++ b/eopayment/dummy.py
@@ -91,8 +91,11 @@ class Payment(PaymentCommon):
{
'name': 'siret',
'caption': 'dummy siret parameter',
+ 'validation': lambda x: x.isdigit(),
+ 'validation_err_msg': 'must be a number',
'type': str,
- 'default': 'siret',
+ 'default': '1234',
+ 'required': True,
},
{
'name': 'consider_all_response_signed',
@@ -105,6 +108,22 @@ class Payment(PaymentCommon):
'default': False,
},
{
+ 'name': 'number',
+ 'caption': 'dummy integer input test',
+ 'type': int,
+ },
+ {
+ 'name': 'choice',
+ 'caption': 'dummy choice input test',
+ 'choices': ['a', 'b'],
+ },
+ {
+ 'name': 'choices',
+ 'caption': 'dummy choices input test',
+ 'choices': ['a', 'b'],
+ 'type': list,
+ },
+ {
'name': 'direct_notification_url',
'caption': 'direct notification url (replaced by automatic_return_url)',
'type': str,