Try to set accent pass tests

This commit is contained in:
Benoit Suttor 2020-02-05 12:52:38 +01:00
parent decaea5265
commit f91ba841c1
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# authentic2-wallonie-connect - Authentic2 plugin for the Wallonie Connect usecase
# Copyright (C) 2019 Entr'ouvert
#
@ -81,7 +82,8 @@ class Command(BaseCommand):
def do(self, contents):
for content in contents:
locality = content.get(
"locality", {"name": "Collectivité par défaut", "slug": "default"}
"locality",
{"name": "Collectivité par défaut".decode("utf8"), "slug": "default"},
)
self.info("Locality %s" % locality["name"], ending=" ")