Beispiel #1
0
    def setUp(self) -> None:
        self.monkeypatch = MonkeyPatch()
        set_configure(self.monkeypatch)

        self.group = self.create_group('group1')
        self.devices = self.get_devices()
        self.add_devices_to_group()
Beispiel #2
0
    def test_show_configure(self):
        set_configure(self.monkeypatch)

        argv = ['configure']
        with EsperTest(argv=argv) as app:
            app.run()

            data, output = app.last_rendered

            credentials = get_esper_credentials()
            assert data[0]["DETAILS"] == credentials.get('environment')
            assert data[1]["DETAILS"] == credentials.get('key')
Beispiel #3
0
    def setUp(self) -> None:
        self.monkeypatch = MonkeyPatch()
        set_configure(self.monkeypatch)

        argv = [
            'app', 'upload',
            'tests/application/Tiny Notepad Simple Small_v1.0_apkpure.com.apk'
        ]
        with EsperTest(argv=argv) as app:
            app.run()
            data, output = app.last_rendered
            self.application_id = data[0]["DETAILS"]
Beispiel #4
0
    def setUp(self) -> None:
        self.monkeypatch = MonkeyPatch()
        set_configure(self.monkeypatch)

        self.device = self.get_device()
Beispiel #5
0
 def setUp(self) -> None:
     self.monkeypatch = MonkeyPatch()
     set_configure(self.monkeypatch)