Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
412 B
Python
Raw Permalink Normal View History

2022-05-02 17:09:36 +02:00
import pytest
import mobase
2022-05-02 17:09:36 +02:00
m = pytest.importorskip("mobase_tests.organizer")
def test_getters():
o: mobase.IOrganizer = m.organizer()
2022-05-02 17:09:36 +02:00
assert o.profileName() == "profile"
assert o.startApplication("valid.exe") == 4654
assert o.startApplication("invalid.exe") == mobase.INVALID_HANDLE_VALUE
2022-05-02 17:09:36 +02:00
assert o.waitForApplication(42) == (False, -1)
assert o.waitForApplication(4654) == (True, 0)