mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
13 lines
329 B
Python
13 lines
329 B
Python
import pytest
|
|||
|
|
from PyQt6.QtWidgets import QWidget
|
||
|
|
|
||
|
|
m = pytest.importorskip("mobase_tests.organizer")
|
||
|
|
|
||
|
|
|
||
|
|
def test_getters():
|
||
|
|
o = m.organizer()
|
||
|
|
assert o.profileName() == "profile"
|
||
|
|
assert o.startApplication("") == 4654
|
||
|
|
assert o.waitForApplication(42) == (False, -1)
|
||
|
|
assert o.waitForApplication(4654) == (True, 0)
|