Skip to content

Failed

OmeroPy.test.integration.clitest.test_admin.TestAdminRestrictedAdmin.test_checkupgrade1 (from pytest)

Failing for the past 6 builds (Since #205 )
Took 6 sec.

Error Message

AssertionError: assert 2 == 1
 +  where 2 = NonZeroReturnCode('assert failed').rv
 +    where NonZeroReturnCode('assert failed') = <ExceptionInfo NonZeroReturnCode('assert failed') tblen=3>.value

Stacktrace

self = <test.integration.clitest.test_admin.TestAdminRestrictedAdmin object at 0x7fa1fb3f2490>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa1cbdcf8e0>

    def test_checkupgrade1(self, monkeypatch):
        monkeypatch.setattr(omero.plugins.prefs, "UpgradeCheck",
                            createUpgradeCheckClass("0.0.0"))
        self.args.append("checkupgrade")
        with pytest.raises(NonZeroReturnCode) as exc:
            self.cli.invoke(self.args, strict=True)
>       assert exc.value.rv == 1
E       AssertionError: assert 2 == 1
E        +  where 2 = NonZeroReturnCode('assert failed').rv
E        +    where NonZeroReturnCode('assert failed') = <ExceptionInfo NonZeroReturnCode('assert failed') tblen=3>.value

test/integration/clitest/test_admin.py:142: AssertionError