Skip to content

Regression

OmeroPy.test.integration.clitest.test_download.TestDownload.testImageFileset[True] (from pytest)

Failing for the past 1 build (Since #184 )
Took 3.4 sec.

Error Message

omero.cli.NonZeroReturnCode: assert failed

Stacktrace

self = <test.integration.clitest.test_download.TestDownload object at 0x7f489db325e0>
tmpdir = local('/tmp/pytest-of-omero/pytest-0/testImageFileset_True_0')
use_fileset = True

    @pytest.mark.parametrize('use_fileset', [True, False])
    def testImageFileset(self, tmpdir, use_fileset):
        fake = create_path("test", "&sizeT=2&sizeZ=5&sizeC=3.fake")
        with open(fake.abspath(), 'w+') as f:
            bytes1 = f.read()
        image_name = os.path.basename(f.name)
        pix_ids = self.import_image(f.name)
        pixels = self.query.get("Pixels", int(pix_ids[0]))
        out_dir = tmpdir.join('test')
        image_id = pixels.getImage().id.val
        object = "Image:%s" % image_id
        if use_fileset:
            image = self.query.get("Image", image_id)
            object = "Fileset:%s" % image.fileset.id.val
        self.args += [object, str(out_dir)]
>       self.cli.invoke(self.args, strict=True)

test/integration/clitest/test_download.py:182: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../../.venv3/lib64/python3.9/site-packages/omero/cli.py:1211: in invoke
    self.assertRC()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <omero.cli.CLI object at 0x7f49048d1940>

    def assertRC(self):
        if self.rv != 0:
>           raise NonZeroReturnCode(self.rv, "assert failed")
E           omero.cli.NonZeroReturnCode: assert failed

../../../../.venv3/lib64/python3.9/site-packages/omero/cli.py:1200: NonZeroReturnCode