Add test_roi_thumbnails()#6235
Conversation
84384ed to
16d7f24
Compare
|
Removed last commit (flake8 fix) since it's been ported to a separate PR #6236 |
|
Re-opening with #6236 merged. |
|
Yes, I tried although I'm also getting similar import errors on other tests, so I've got something wrong locally. |
9768603 to
a7f4d21
Compare
|
|
|
Thanks for the first round of changes. As mentioned above the method needs to be moved to a common file |
| thumb = Image.open(thumb_bytes) | ||
| finally: | ||
| thumb_bytes.close() | ||
| assert thumb.size == (250, 166) |
There was a problem hiding this comment.
There was a problem hiding this comment.
Might be worth extracting such magic numbers out to a constant somewhere (at some point in the future)
|
Looking at the various methods to generate thumbnails. |
|
Closed BytesIO in webgateway |
db68982 to
b4ee04a
Compare
Adds tests for ome/omero-web#157
Tests fail without that PR