Stack Trace
self = <test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7f1a82ee4310>
tmpdir = local('/tmp/pytest-of-omero/pytest-5/test_remove_pyramids_check_thu0')
capsys = <_pytest.capture.CaptureFixture object at 0x7f1a4684d310>
def test_remove_pyramids_check_thumbnails(self, tmpdir, capsys):
"""Test check that the thumbnail is correctly created"""
name = "big&sizeX=3500&sizeY=3500&little=false.fake"
img_id = self.import_pyramid(tmpdir, name=name, skip=None)
query_service = self.client.sf.getQueryService()
pix = query_service.findByQuery(
"select p from Pixels p where p.image.id = :id",
ParametersI().addId(img_id))
tb = self.client.sf.createThumbnailStore()
id = pix.id.val
thumb_hash = None
try:
thumbs = tb.getThumbnailByLongestSideSet(rint(64), [id],
{'omero.group': '-1'})
assert len(thumbs) == 1
thumb_hash = self.calculate_sha1(thumbs[id])
# remove the pyramid and the thumbnail
self.args += ["--endian=big"]
self.cli.invoke(self.args, strict=True)
out, err = capsys.readouterr()
thumbs = tb.getThumbnailByLongestSideSet(rint(64), [id],
{'omero.group': '-1'})
assert len(thumbs) == 1
# The clock should be returned during the pyramid generation
digest = self.calculate_sha1(thumbs[id])
> assert digest != thumb_hash
E AssertionError: assert '5eb87159f8ecb29ae94909082c3288d338985bb2' != '5eb87159f8ecb29ae94909082c3288d338985bb2'
test/integration/clitest/test_pyramids.py:319: AssertionError