Stack Trace
self = <test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9621a8c90>
tmpdir = local('/tmp/pytest-of-omero/pytest-0/test_remove_pyramids0')
capsys = <_pytest.capture.CaptureFixture object at 0x7fe957b3a350>
def test_remove_pyramids(self, tmpdir, capsys):
"""Test removepyramids with litlle endian true"""
name = "big&sizeX=3500&sizeY=3500&little=false.fake"
big_id = self.import_pyramid(tmpdir, name=name, skip=None)
query_service = self.client.sf.getQueryService()
rows = unwrap(query_service.projection(
"select p.id from Image i join i.pixels p where i.id = :id",
ParametersI().addId(big_id)
))
pixels_id = rows[0][0]
> self.wait_for_pyramid_file(pixels_id)
test/integration/clitest/test_pyramids.py:275:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9621a8c90>
pixels_id = 317, timeout = 120
def wait_for_pyramid_file(self, pixels_id, timeout=120):
pixels_dir = (
"/home/omero/workspace/"
"OMERO-test-integration/data/Pixels"
)
expected = f"{pixels_id}_pyramid"
deadline = time.time() + timeout
while time.time() < deadline:
for root, _, files in os.walk(pixels_dir):
if expected in files:
return
time.sleep(1)
> pytest.fail(
f"Timed out waiting for pyramid file {expected}"
)
E Failed: Timed out waiting for pyramid file 317_pyramid
test/integration/clitest/test_pyramids.py:156: Failed