1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-24 02:28:49 +02:00

Add tests for Hello Asso payments using a fake endpoint

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-02-25 17:24:52 +01:00
parent 92408b359b
commit 83300ad4b7
5 changed files with 377 additions and 2 deletions

View File

@ -13,7 +13,7 @@ _expires_at = None
def _get_hello_asso_api_base_url():
if settings.HELLOASSO_TEST_ENDPOINT:
return f"{settings.HELLOASSO_TEST_ENDPOINT_URL}/helloasso-test"
return f"{settings.HELLOASSO_TEST_ENDPOINT_URL}/helloasso-test/api"
elif not settings.DEBUG:
return "https://api.helloasso.com"
else: