feat(test): Add second adoption notice

This commit is contained in:
moanos [he/him] 2024-03-18 14:21:22 +01:00
parent 12907a601a
commit 549fd33ccc

View File

@ -17,6 +17,9 @@ class Command(BaseCommand):
rat2 = baker.make_recipe( rat2 = baker.make_recipe(
'fellchensammlung.rat' 'fellchensammlung.rat'
) )
cat = baker.make_recipe(
'fellchensammlung.cat'
)
rescue1 = baker.make_recipe( rescue1 = baker.make_recipe(
'fellchensammlung.rescue_org' 'fellchensammlung.rescue_org'
) )
@ -26,6 +29,8 @@ class Command(BaseCommand):
baker.make(AdoptionNotice, name="Vermittung1", animals=[rat1, rat2], organization=rescue1) baker.make(AdoptionNotice, name="Vermittung1", animals=[rat1, rat2], organization=rescue1)
baker.make(AdoptionNotice, name="Vermittung2", animals=[cat], organization=rescue2)
User.objects.create_user('test', password='foobar') User.objects.create_user('test', password='foobar')
User.objects.create_superuser(username="admin", password="admin") User.objects.create_superuser(username="admin", password="admin")