diff --git a/.env.template b/.env.template
index ae60e2e58..9f49fa64e 100644
--- a/.env.template
+++ b/.env.template
@@ -18,3 +18,24 @@ GITHUB_REPO=betagouv/itou-communaute-django
# SENDINBLUE API KEY
SIB_API_KEY=__key_to_be_set__
+
+# for Sentry
+#SENTRY_DSN=__url_to_be_set__
+
+# for Inclusion Connect
+INCLUSION_CONNECT_BASE_URL=http://127.0.0.1:8080
+INCLUSION_CONNECT_REALM=local
+INCLUSION_CONNECT_CLIENT_ID=local_inclusion_connect
+INCLUSION_CONNECT_CLIENT_SECRET=__key_to_be_set__
+
+# Path to the itou-backup project repository.
+PATH_TO_BACKUPS=~/path/to/itou-backups
+
+# bucket for test purpose only
+CELLAR_ADDON_KEY_ID=__id_to_be_set__
+CELLAR_ADDON_KEY_SECRET=__key_to_be_set__
+CELLAR_ADDON_HOST=__host_to_be_set__
+CELLAR_ADDON_PROTOCOL=https
+S3_STORAGE_BUCKET_NAME=c3-storage-test-prive
+S3_STORAGE_BUCKET_NAME_PUBLIC=c3-storage-test-public
+S3_STORAGE_BUCKET_REGION=eu-west-3
diff --git a/README.md b/README.md
index 33da5f85b..69ce20276 100644
--- a/README.md
+++ b/README.md
@@ -44,11 +44,15 @@ python manage.py runserver
## Peupler la base de données
+1. setup anonymous user default perms
+1. setup authenticated user default perms
+1. creer un forum type=0, kind=PUBLIC_FORUM, name="Échanges"
+1. creer un forum type=0, kind=News, name="Actualités"
-```bash
-python manage.py loaddata fixtures/validation_fixtures.json
-```
+pour créer de la documentation:
+1. creer un forum type=1, kind=PUBLIC_FORUM, name="nom du thème"
+1. creer un à x forum(s) type=0, kind=PUBLIC_FORUM, parent={forum précédent}, name="nom du sous-thème"
## Mises à jour
@@ -108,7 +112,6 @@ Il vous reste juste à configurer votre IDE pour qu'il s'y attache. Dans VSCode,
Vous pourrez dès lors placer des points d'arrêt dans le code en survolant le numéro de ligne dans la colonne à gauche et de lancer le débogueur (qui ne fera que s'attacher au serveur de deboguage qui tourne dans votre conteneur).
-
### Lancer les tests en distribué
```bash
@@ -119,47 +122,50 @@ pytest --numprocesses=logical --create-db
Ajouter les secrets suivants dans le repo git
-* CLEVER_SECRET
-* CLEVER_TOKEN
+- CLEVER_SECRET
+- CLEVER_TOKEN
Créer et lier les addons
-* postgresql
-* cellar S3 storage
-* configuration provider
+
+- postgresql
+- cellar S3 storage
+- configuration provider
Créer les variables d'environnement suivantes dans le configuration provider
-* ALLOWED_HOSTS
-* CC_PIP_REQUIREMENTS_FILE
-* CC_PYTHON_BACKEND
-* CC_PYTHON_MODULE
-* CC_PYTHON_VERSION
-* CC_UWSGI_DISABLE_FILE_WRAPPER
-* DJANGO_DEBUG
-* DJANGO_SECRET_KEY
-* DJANGO_SETTINGS_MODULE
-* INCLUSION_CONNECT_BASE_URL
-* INCLUSION_CONNECT_CLIENT_ID
-* INCLUSION_CONNECT_CLIENT_SECRET
-* INCLUSION_CONNECT_REALM
-* PORT
-* PYTHONPATH
-* S3_STORAGE_BUCKET_NAME
-* S3_STORAGE_BUCKET_NAME_PUBLIC"
-* S3_STORAGE_BUCKET_REGION
-* SENTRY_DSN
-* SIB_API_KEY
-* STATIC_FILES_PATH
-* STATIC_URL_PREFIX
+
+- ALLOWED_HOSTS
+- CC_PIP_REQUIREMENTS_FILE
+- CC_PYTHON_BACKEND
+- CC_PYTHON_MODULE
+- CC_PYTHON_VERSION
+- CC_UWSGI_DISABLE_FILE_WRAPPER
+- DJANGO_DEBUG
+- DJANGO_SECRET_KEY
+- DJANGO_SETTINGS_MODULE
+- INCLUSION_CONNECT_BASE_URL
+- INCLUSION_CONNECT_CLIENT_ID
+- INCLUSION_CONNECT_CLIENT_SECRET
+- INCLUSION_CONNECT_REALM
+- PORT
+- PYTHONPATH
+- S3_STORAGE_BUCKET_NAME
+- S3_STORAGE_BUCKET_NAME_PUBLIC"
+- S3_STORAGE_BUCKET_REGION
+- SENTRY_DSN
+- SIB_API_KEY
+- STATIC_FILES_PATH
+- STATIC_URL_PREFIX
### pour le déploiment des recettes jetables
Créer et lier les addons (différents de ceux de production ^^)
-* postgresql
-* cellar S3 storage
-* configuration provider
+
+- postgresql
+- cellar S3 storage
+- configuration provider
Ajouter les secrets suivants dans le repo git
-* CLEVER_REVIEW_APPS_CONFIGURATION_ADDON
-* CLEVER_REVIEW_APPS_ORG
-* CLEVER_REVIEW_APPS_S3_ADDON
+- CLEVER_REVIEW_APPS_CONFIGURATION_ADDON
+- CLEVER_REVIEW_APPS_ORG
+- CLEVER_REVIEW_APPS_S3_ADDON
diff --git a/lacommunaute/forum/tests/tests_views.py b/lacommunaute/forum/tests/tests_views.py
index 3649d4883..8fcdcd7c3 100644
--- a/lacommunaute/forum/tests/tests_views.py
+++ b/lacommunaute/forum/tests/tests_views.py
@@ -128,27 +128,27 @@ def test_has_liked(self):
self.client.force_login(self.user)
response = self.client.get(self.url)
# icon: solid heart
- self.assertContains(response, '1')
+ self.assertContains(response, '1')
def test_has_not_liked(self):
self.client.force_login(self.user)
response = self.client.get(self.url)
# icon: regular heart (outlined)
- self.assertContains(response, '0')
+ self.assertContains(response, '0')
def test_has_liked_TOPIC_ANNOUNCE(self):
TopicFactory(forum=self.forum, poster=self.user, with_post=True, with_like=True, type=Topic.TOPIC_ANNOUNCE)
self.client.force_login(self.user)
response = self.client.get(self.url)
- self.assertContains(response, '1')
+ self.assertContains(response, '1')
def test_has_not_liked_TOPIC_ANNOUNCE(self):
TopicFactory(forum=self.forum, poster=self.user, with_post=True, type=Topic.TOPIC_ANNOUNCE)
self.client.force_login(self.user)
response = self.client.get(self.url)
- self.assertContains(response, '0')
+ self.assertContains(response, '0')
def test_anonymous_like(self):
params = {"next_url": self.url}
@@ -342,7 +342,7 @@ def test_share_buttons(self):
response = self.client.get(url)
self.assertContains(
response,
- 'div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuSocialShare">',
+ 'div class="dropdown-menu dropdown-menu-end" aria-labelledby="dropdownMenuSocialShare">',
status_code=200,
)
@@ -355,9 +355,9 @@ def test_upvote_actions(self):
''
- '\n 0'
+ '\n 0'
)
response = self.client.get(
reverse("forum_extension:forum", kwargs={"pk": child_forum.pk, "slug": child_forum.slug})
@@ -368,13 +368,13 @@ def test_upvote_actions(self):
self.client.force_login(self.user)
no_upvote_html = (
'