test: add owner to test to prevent random owner generation

This commit is contained in:
moanos [he/him] 2024-12-31 12:55:13 +01:00
parent b51d04ffd1
commit 6723dad4bd

View File

@ -23,7 +23,7 @@ class AnimalAndAdoptionTest(TestCase):
test_user0.trust_level = TrustLevel.ADMIN
test_user0.save()
adoption1 = baker.make(AdoptionNotice, name="TestAdoption1")
adoption1 = baker.make(AdoptionNotice, name="TestAdoption1", owner=test_user0)
rat = baker.make(Species, name="Farbratte")
rat1 = baker.make(Animal,