dummy: use a new URL https://dummy-payment.entrouvert.com/ (#72234)
This commit is contained in:
parent
1841f1fa4a
commit
1f781057c7
|
@ -24,7 +24,7 @@ from .common import ERROR, PAID, URL, WAITING, PaymentCommon, PaymentResponse, R
|
||||||
__all__ = ['Payment']
|
__all__ = ['Payment']
|
||||||
|
|
||||||
|
|
||||||
SERVICE_URL = 'http://dummy-payment.demo.entrouvert.com/'
|
SERVICE_URL = 'https://dummy-payment.entrouvert.com/'
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ class Payment(PaymentCommon):
|
||||||
It is used with a dummy implementation of a bank payment service that
|
It is used with a dummy implementation of a bank payment service that
|
||||||
you can find on:
|
you can find on:
|
||||||
|
|
||||||
http://dummy-payment.demo.entrouvert.com/
|
https://dummy-payment.entrouvert.com/
|
||||||
|
|
||||||
You must pass the following keys inside the options dictionnary:
|
You must pass the following keys inside the options dictionnary:
|
||||||
- dummy_service_url, the URL of the dummy payment service, it defaults
|
- dummy_service_url, the URL of the dummy payment service, it defaults
|
||||||
|
|
|
@ -39,8 +39,8 @@ def test_request(backend, freezer):
|
||||||
assert transaction_id
|
assert transaction_id
|
||||||
assert method == 1
|
assert method == 1
|
||||||
url = urlparse(raw_url)
|
url = urlparse(raw_url)
|
||||||
assert url.scheme == 'http'
|
assert url.scheme == 'https'
|
||||||
assert url.netloc == 'dummy-payment.demo.entrouvert.com'
|
assert url.netloc == 'dummy-payment.entrouvert.com'
|
||||||
assert url.path == '/'
|
assert url.path == '/'
|
||||||
assert url.fragment == ''
|
assert url.fragment == ''
|
||||||
qs = {k: v[0] for k, v in parse_qs(url.query).items()}
|
qs = {k: v[0] for k, v in parse_qs(url.query).items()}
|
||||||
|
|
Loading…
Reference in New Issue