示例#1
0
    def test_launch(self, ovshell: testing.OpenVarioShellStub) -> None:
        # GIVEN
        app = setupapp.SetupApp(ovshell, "test")

        # WHEN
        app.launch()

        # THEN
        act = ovshell.screen.stub_top_activity()
        assert isinstance(act, setupapp.SetupActivity)
示例#2
0
 def list_apps(self) -> Sequence[api.App]:
     return [
         upgradeapp.SystemUpgradeApp(self.shell),
         setupapp.SetupApp(self.shell, self.id),
         aboutapp.AboutApp(self.shell),
     ]