Skip to content

Commit

Permalink
test: hydratation de la recette jetable (#878)
Browse files Browse the repository at this point in the history
## Description

🎸 Ajout d'une adresse email fixe au superutilisateur lors de la creation
de données des environnements de dev et de test

## Type de changement

🚧 technique

### Points d'attention

🦺 suppression d'une commande de migration obsolete
  • Loading branch information
vincentporte authored Jan 13, 2025
1 parent 0af83ee commit a8ab163
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 87 deletions.
86 changes: 0 additions & 86 deletions lacommunaute/forum/management/commands/202306_forumpublic.py

This file was deleted.

6 changes: 5 additions & 1 deletion lacommunaute/forum/management/commands/populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ class Command(BaseCommand):
def handle(self, *args, **options):
tags = ["Pirmadienis", "Poniedziałek", "Lundi", "Montag"]

UserFactory(username="communaute", password="password", is_superuser=True, is_staff=True)
UserFactory(
email="[email protected]",
is_superuser=True,
is_staff=True,
)
sys.stdout.write("superuser created\n")

partners = PartnerFactory.create_batch(5, with_logo=True)
Expand Down

0 comments on commit a8ab163

Please sign in to comment.