From 24c2fbfddf8d6e7d9a75079cae140a77406eb8b9 Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 30 May 2024 10:57:05 +0200 Subject: [PATCH] tests: Move images --- .../management/commands/populate_db.py | 2 +- src/{fellchensammlung => }/tests/assets/cat1.jpeg | Bin src/{fellchensammlung => }/tests/assets/cat2.jpeg | Bin src/{fellchensammlung => }/tests/assets/rat1.jpg | Bin src/{fellchensammlung => }/tests/assets/rat2.jpg | Bin src/{fellchensammlung => }/tests/assets/rat3.jpg | Bin .../tests/assets/rat_cuddle_puddle_1.jpg | Bin 7 files changed, 1 insertion(+), 1 deletion(-) rename src/{fellchensammlung => }/tests/assets/cat1.jpeg (100%) rename src/{fellchensammlung => }/tests/assets/cat2.jpeg (100%) rename src/{fellchensammlung => }/tests/assets/rat1.jpg (100%) rename src/{fellchensammlung => }/tests/assets/rat2.jpg (100%) rename src/{fellchensammlung => }/tests/assets/rat3.jpg (100%) rename src/{fellchensammlung => }/tests/assets/rat_cuddle_puddle_1.jpg (100%) diff --git a/src/fellchensammlung/management/commands/populate_db.py b/src/fellchensammlung/management/commands/populate_db.py index e18849b..d224c7f 100644 --- a/src/fellchensammlung/management/commands/populate_db.py +++ b/src/fellchensammlung/management/commands/populate_db.py @@ -52,7 +52,7 @@ class Command(BaseCommand): image_object = Image() image_object.alt_text = 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() animal.photos.add(image_object) diff --git a/src/fellchensammlung/tests/assets/cat1.jpeg b/src/tests/assets/cat1.jpeg similarity index 100% rename from src/fellchensammlung/tests/assets/cat1.jpeg rename to src/tests/assets/cat1.jpeg diff --git a/src/fellchensammlung/tests/assets/cat2.jpeg b/src/tests/assets/cat2.jpeg similarity index 100% rename from src/fellchensammlung/tests/assets/cat2.jpeg rename to src/tests/assets/cat2.jpeg diff --git a/src/fellchensammlung/tests/assets/rat1.jpg b/src/tests/assets/rat1.jpg similarity index 100% rename from src/fellchensammlung/tests/assets/rat1.jpg rename to src/tests/assets/rat1.jpg diff --git a/src/fellchensammlung/tests/assets/rat2.jpg b/src/tests/assets/rat2.jpg similarity index 100% rename from src/fellchensammlung/tests/assets/rat2.jpg rename to src/tests/assets/rat2.jpg diff --git a/src/fellchensammlung/tests/assets/rat3.jpg b/src/tests/assets/rat3.jpg similarity index 100% rename from src/fellchensammlung/tests/assets/rat3.jpg rename to src/tests/assets/rat3.jpg diff --git a/src/fellchensammlung/tests/assets/rat_cuddle_puddle_1.jpg b/src/tests/assets/rat_cuddle_puddle_1.jpg similarity index 100% rename from src/fellchensammlung/tests/assets/rat_cuddle_puddle_1.jpg rename to src/tests/assets/rat_cuddle_puddle_1.jpg