Merge branch 'aureplop/cof_tests' into aureplop/cof-tests_registration

This commit is contained in:
Aurélien Delobelle 2018-01-20 17:02:54 +01:00
commit 7bf2f73e72

View file

@ -63,6 +63,7 @@ class Command(BaseCommand):
except CustomMail.DoesNotExist:
mail = CustomMail.objects.create(**fields)
status['synced'] += 1
if options['verbosity']:
self.stdout.write(
'SYNCED {:s}'.format(fields['shortname']))
assoc['mails'][obj['pk']] = mail
@ -79,6 +80,7 @@ class Command(BaseCommand):
except Variable.DoesNotExist:
Variable.objects.create(**fields)
if options['verbosity']:
# C'est agréable d'avoir le résultat affiché
self.stdout.write(
'{synced:d} mails synchronized {unchanged:d} unchanged'