Skip to content
Extraits de code Groupes Projets
Valider 675780a9 rédigé par Nicolas Joyard's avatar Nicolas Joyard
Parcourir les fichiers

Avoid ContentType UK error and fix expected group URLs

parent d3148298
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -35,7 +35,7 @@ class RepresentativeDetailTest(UrlGetTestMixin, TestCase): ...@@ -35,7 +35,7 @@ class RepresentativeDetailTest(UrlGetTestMixin, TestCase):
def test_current_mandate_display(self): def test_current_mandate_display(self):
expected = ''.join(( expected = ''.join((
"<a href='/legislature/representative/group/Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'>", # noqa "<a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'>", # noqa
"Member of Group of the Progressive Alliance of Socialists and Democrats in the European Parliament", # noqa "Member of Group of the Progressive Alliance of Socialists and Democrats in the European Parliament", # noqa
"</a>", "</a>",
)) ))
......
...@@ -76,9 +76,10 @@ class PositionTest(TestCase): ...@@ -76,9 +76,10 @@ class PositionTest(TestCase):
# Trigger irrelevant queries that happen only once ie. constance before # Trigger irrelevant queries that happen only once ie. constance before
# testing actual page queries. # testing actual page queries.
self.client.get(position.get_absolute_url()) self.client.get(position.get_absolute_url())
with self.assertNumQueries(3): with self.assertNumQueries(4):
# One for position and rep and score # One for position and rep and score
# One for rep mandates # One for rep mandates
# One for rep chamber
# One for position tags # One for position tags
response = self.client.get(position.get_absolute_url()) response = self.client.get(position.get_absolute_url())
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter