[Test Suite] Test suite can't limit certain tests to certain file types
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phatch |
Confirmed
|
High
|
Nadia Alramli |
Bug Description
ATM we are only testing: jpeg, gif and png which is pretty weak. For example if SVG supports break, we don't get any notice. All file types that phatch supports should be in input
but we only need to do basic tests on them: just see if they can be opened. If would put these all now in the test suite would take a lot of time as it duplicates wor.
Right now we have this problem:
Test suite should not try to perform jpeg actions on other file types
This is spamming the test logs.
actionlist: /home/stani/
Error 0:Can not apply action Delete Tags on image 'bee.png' in folder:
/home/stani/
Format PNG does not support overwriting "Exif_Image_
Action:{'fields': {'Method': u'One',
'Tag': 'Exif_Image_
'label': 'Delete Tags'}
Traceback (most recent call last):
File "/home/
photo = action.apply(photo, read_only_settings, cache)
File "/home/
del info[tag]
File "/home/
self.
File "/home/
% {'format': self['format'], 'tag': tag})
NotWritableTagE
actionlist: /home/stani/
Error 0:Can not apply action Lossless JPEG on image 'bee.png' in folder:
/home/stani/
Lossless JPEG transformation does not work on a PNG image::
/home/stani/
Action:{'fields': {'All': '30%',
'Angle ': u'270 degrees',
'Copy': u'All',
'File Name': u'<filename>
'In': u'/home/
'Left': '0px',
'Mode': u'Custom',
'Show Advanced Options': 'yes',
'Top': '0px',
'Update Exif Thumbnail': 'no',
'Update JPEG': 'yes',
'Update Orientation Tag': 'yes',
'label': 'Lossless JPEG'}
Traceback (most recent call last):
File "/home/
photo = action.apply(photo, read_only_settings, cache)
File "/home/
self.
File "/home/
% (LOSSLESS_
Exception: Lossless JPEG transformation does not work on a PNG image::
/home/stani/
*
description: | updated |
summary: |
- Test suite should not try to edit metadata of png or gif images + Test suite should not try to perform jpeg actions on other file types |
description: | updated |
tags: | added: test |
summary: |
- Test suite should not try to perform jpeg actions on other file types + Test suite can't limit certain tests to certain file types |
description: | updated |
summary: |
- Test suite can't limit certain tests to certain file types + [Test Suite] Test suite can't limit certain tests to certain file types |
Changed in phatch: | |
importance: | Low → High |