Standardize Image Tests #369
Labels
cleanup 🧹
Refactorings and other tasks that improve the code
enhancement 💡
New feature or request
released
Included in a release
Is your feature request related to a problem?
Currently some transformation methods in the
_image.py
file construct a new image using the Bytestream and therefore have to cover every file format individually. We would like to use a deep copy instead.The tests in the
test_image
file have duplicate test cases for both .png and .jpg files. We would like to standardize those tests as well so we dont have to implement a test case for each file format.Desired solution
Go through the transformation methods in
_image.py
and change the functionality of each method to use a deep Copy instead of a bytestream.Go through the tests in
test_image.py
and remove every redundant test, that only test a different file formatThe desired solution is already implemented in the methods
Image.flip_vertically
andImage.flip_horizontally
as well astest_image.TestFlipVertically
andtest_image.TestFlipHorizontally
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered: