diff --git a/bt5/erp5_data_notebook/TestTemplateItem/portal_components/test.erp5.testExecuteJupyter.py b/bt5/erp5_data_notebook/TestTemplateItem/portal_components/test.erp5.testExecuteJupyter.py index a0be67f4d74268a4742025b142d0d245b6b85984..b8e93083b73760a93d48bb46f396c3e830437542 100644 --- a/bt5/erp5_data_notebook/TestTemplateItem/portal_components/test.erp5.testExecuteJupyter.py +++ b/bt5/erp5_data_notebook/TestTemplateItem/portal_components/test.erp5.testExecuteJupyter.py @@ -392,4 +392,6 @@ context.Base_displayImage(image_object=image) ) self.assertEquals(result['result_string'].rstrip(), base64.b64encode(data)) - self.assertEquals(result['mime_type'], 'image/png') + # Mime_type shouldn't be image/png just because of filename, instead it is + # dependent on file and file data + self.assertNotEqual(result['mime_type'], 'image/png')