tests: Move images

This commit is contained in:
moanos [he/him] 2024-05-30 10:57:05 +02:00
parent 3118701897
commit 24c2fbfddf
7 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class Command(BaseCommand):
image_object = Image() image_object = Image()
image_object.alt_text = f"Picture of {animal}" image_object.alt_text = f"Picture of {animal}"
image_object.title = f"Picture of {animal}" image_object.title = f"Picture of {animal}"
image_object.image.save(f"{filename}", File(open(f"./src/fellchensammlung/tests/assets/{filename}", 'rb'))) image_object.image.save(f"{filename}", File(open(f"./src/tests/assets/{filename}", 'rb')))
image_object.save() image_object.save()
animal.photos.add(image_object) animal.photos.add(image_object)

View File

Before

Width:  |  Height:  |  Size: 350 KiB

After

Width:  |  Height:  |  Size: 350 KiB

View File

Before

Width:  |  Height:  |  Size: 385 KiB

After

Width:  |  Height:  |  Size: 385 KiB

View File

Before

Width:  |  Height:  |  Size: 3.4 MiB

After

Width:  |  Height:  |  Size: 3.4 MiB

View File

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

View File

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 2.3 MiB