aboutsummaryrefslogtreecommitdiff
path: root/libs/plugin_python/tests/python/test_organizer.py
blob: 3ac42d28f8b85dbf91386db1c9e60f651f7d140f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pytest

import mobase

m = pytest.importorskip("mobase_tests.organizer")


def test_getters():
    o: mobase.IOrganizer = m.organizer()
    assert o.profileName() == "profile"
    assert o.startApplication("valid.exe") == 4654
    assert o.startApplication("invalid.exe") == mobase.INVALID_HANDLE_VALUE
    assert o.waitForApplication(42) == (False, -1)
    assert o.waitForApplication(4654) == (True, 0)