-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from numerique-gouv/cards-bugfix
[Bugfix] Réparation des cartes et du title du site
- Loading branch information
Showing
8 changed files
with
58 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## 🎯 Objectif | ||
|
||
_Un résumé de l’objectif de la PR_ | ||
|
||
_Précisez si c’est un bugfix, une nouvelle fonctionnalité… Expliquez rapidement le gain « fonctionnel » de vos modifications._ | ||
|
||
## 🔍 Implémentation | ||
|
||
- _Une liste des modifications_ | ||
|
||
## ⚠️ Informations supplémentaires | ||
|
||
_(optionnel) Documentation, commandes à lancer, variables d’environnement, etc._ | ||
|
||
## 🏕 Amélioration continue | ||
|
||
- _(optionnel) Une liste d’autres modifications pas en lien direct avec la PR_ | ||
|
||
## 🖼️ Images | ||
|
||
_(optionnel) Une ou plusieurs captures d’écran, si pertinent_ |
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 |
---|---|---|
|
@@ -143,3 +143,4 @@ dmypy.json | |
|
||
# VSCode | ||
.VSCode | ||
.vscode/ |
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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from django.contrib.auth.models import User | ||
from wagtail.models import Page | ||
from wagtail.test.utils import WagtailPageTestCase | ||
|
||
from content_manager.models import ContentPage | ||
|
||
|
||
class ContentPageTestCase(WagtailPageTestCase): | ||
def setUp(self): | ||
home = Page.objects.get(slug="home") | ||
self.user = User.objects.create_superuser("test", "test@test.test", "pass") | ||
self.user.save() | ||
self.content_page = home.add_child( | ||
instance=ContentPage( | ||
title="Page de contenu", | ||
slug="content-page", | ||
owner=self.user, | ||
) | ||
) | ||
self.content_page.save() | ||
|
||
def test_content_page_is_renderable(self): | ||
self.assertPageIsRenderable(self.content_page) | ||
|
||
def test_content_page_has_minimal_content(self): | ||
url = self.content_page.url | ||
response = self.client.get(url) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
self.assertContains( | ||
response, | ||
"<title>Page de contenu — Titre du site</title>", | ||
) |
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