-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adhésion à l'association via helloasso (#5468)
- Loading branch information
Showing
7 changed files
with
8 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from django.conf import settings | ||
from django.urls import reverse | ||
from django.test import TestCase | ||
from django.test.utils import override_settings | ||
|
@@ -66,33 +65,6 @@ def test_url_association(self): | |
|
||
self.assertEqual(result.status_code, 200) | ||
|
||
def test_subscribe_association(self): | ||
""" | ||
To test the "subscription to the association" form. | ||
""" | ||
_, forum = create_category_and_forum() | ||
|
||
# overrides the settings to avoid 404 if forum does not exist | ||
settings.ZDS_APP['site']['association']['forum_ca_pk'] = forum.pk | ||
|
||
# send form | ||
long_str = '' | ||
for i in range(3100): | ||
long_str += 'A' | ||
|
||
result = self.client.post( | ||
reverse('pages-assoc-subscribe'), | ||
{ | ||
'full_name': 'Anne Onyme', | ||
'email': '[email protected]', | ||
'naissance': '01 janvier 1970', | ||
'adresse': '42 rue du savoir, appartement 42, 75000 Paris, France', | ||
'justification': long_str | ||
}, | ||
follow=False) | ||
|
||
self.assertEqual(result.status_code, 200) | ||
|
||
def test_url_cookies(self): | ||
"""Test: check that cookies page is alive.""" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,10 @@ | |
from .config import config | ||
from .base_dir import BASE_DIR | ||
|
||
|
||
zds_config = config.get('zds', {}) | ||
|
||
|
||
GEOIP_PATH = join(BASE_DIR, 'geodata') | ||
|
||
|
||
ES_ENABLED = True | ||
|
||
ES_CONNECTIONS = { | ||
|
@@ -27,11 +24,9 @@ | |
'replicas': 0, | ||
} | ||
|
||
|
||
# Anonymous [Dis]Likes. Authors of [dis]likes before those pk will never be shown | ||
VOTES_ID_LIMIT = zds_config.get('VOTES_ID_LIMIT', 0) | ||
|
||
|
||
THUMBNAIL_ALIASES = { | ||
'': { | ||
'avatar': {'size': (60, 60), 'crop': True}, | ||
|
@@ -52,6 +47,7 @@ | |
}, | ||
} | ||
|
||
DEFAULT_ASSO_LINK = 'https://www.helloasso.com/associations/zeste-de-savoir/adhesions/zeste-de-savoir-cotisations-2018' | ||
|
||
ZDS_APP = { | ||
'site': { | ||
|
@@ -77,7 +73,8 @@ | |
'fee': zds_config.get('association_fee', '20 €'), | ||
'email': '[email protected]', | ||
'email_ca': '[email protected]', | ||
'forum_ca_pk': 25 | ||
'forum_ca_pk': 25, | ||
'subscribe_link': zds_config.get('association_subscribe_link', DEFAULT_ASSO_LINK) | ||
}, | ||
'repository': { | ||
'url': 'https://github.com/zestedesavoir/zds-site', | ||
|
@@ -185,7 +182,7 @@ | |
'maximum_slug_size': 150, | ||
'characters_per_minute': 1500, | ||
'editorial_line_link': | ||
'https://zestedesavoir.com/articles/222/la-ligne-editoriale-officielle-de-zeste-de-savoir/', | ||
'https://zestedesavoir.com/articles/222/la-ligne-editoriale-officielle-de-zeste-de-savoir/', | ||
'epub_stylesheets': { | ||
'toc': Path('toc.css'), | ||
'full': Path(BASE_DIR) / 'dist' / 'css' / 'zmd.css', | ||
|