Compare commits

...

1 Commits

Author SHA1 Message Date
Thomas NOËL e077d33f66 dummy: use a new URL https://dummy-payment.entrouvert.com/ (#72234)
gitea/eopayment/pipeline/head Build started... Details
2022-12-09 12:33:55 +01:00
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ from .common import ERROR, PAID, URL, WAITING, PaymentCommon, PaymentResponse, R
__all__ = ['Payment']
SERVICE_URL = 'http://dummy-payment.demo.entrouvert.com/'
SERVICE_URL = 'https://dummy-payment.entrouvert.com/'
LOGGER = logging.getLogger(__name__)
@ -35,7 +35,7 @@ class Payment(PaymentCommon):
It is used with a dummy implementation of a bank payment service that
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:
- dummy_service_url, the URL of the dummy payment service, it defaults

View File

@ -39,8 +39,8 @@ def test_request(backend, freezer):
assert transaction_id
assert method == 1
url = urlparse(raw_url)
assert url.scheme == 'http'
assert url.netloc == 'dummy-payment.demo.entrouvert.com'
assert url.scheme == 'https'
assert url.netloc == 'dummy-payment.entrouvert.com'
assert url.path == '/'
assert url.fragment == ''
qs = {k: v[0] for k, v in parse_qs(url.query).items()}