Skip to content

Regression

OmeroPy.test.integration.clitest.test_download.TestDownload.testFileAnnotationMultipleGroups (from pytest)

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

Error Message

omero.cli.NonZeroReturnCode: assert failed

Stacktrace

self = <test.integration.clitest.test_download.TestDownload object at 0x7f489db328b0>
capsys = <_pytest.capture.CaptureFixture object at 0x7f48fd0d5eb0>

    def testFileAnnotationMultipleGroups(self, capsys):
        user, group1, group2 = self.setup_user_and_two_groups()
        client = self.new_client(user=user)
        ofile = self.create_original_file(b"test")
        fa = omero.model.FileAnnotationI()
        fa.setFile(ofile)
        fa = self.update.saveAndReturnObject(fa)
        self.set_context(client, group2.id.val)
        self.args += ['FileAnnotation:%s' % str(fa.id.val), '-']
>       self.cli.invoke(self.args, strict=True)

test/integration/clitest/test_download.py:154: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../../.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