From e755068a31172e6952057769a5182d671b34de44 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sun, 1 Mar 2020 12:13:36 +0100 Subject: [PATCH] added test for png's --- cookbook/tests/edits/test_edits_recipe.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbook/tests/edits/test_edits_recipe.py b/cookbook/tests/edits/test_edits_recipe.py index 749d0d640..bc6af0292 100644 --- a/cookbook/tests/edits/test_edits_recipe.py +++ b/cookbook/tests/edits/test_edits_recipe.py @@ -93,3 +93,7 @@ class TestEditsRecipe(TestViews): with open('cookbook/tests/resources/image.jpg', 'rb') as file: r = self.client.post(url, {'name': "Changed", 'working_time': 15, 'waiting_time': 15, 'image': file}) self.assertEqual(r.status_code, 200) + + with open('cookbook/tests/resources/image.png', 'rb') as file: + r = self.client.post(url, {'name': "Changed", 'working_time': 15, 'waiting_time': 15, 'image': file}) + self.assertEqual(r.status_code, 200)