2023-07-10 15:55:10 +00:00
|
|
|
import squishtest # noqa
|
|
|
|
|
|
|
|
import configs
|
2023-08-04 18:27:03 +00:00
|
|
|
from . import server, context, objects_access, toplevel_window, aut, atomacos, mouse
|
2023-07-10 15:55:10 +00:00
|
|
|
|
|
|
|
imports = {module.__name__: module for module in [
|
2023-08-04 18:27:03 +00:00
|
|
|
atomacos,
|
|
|
|
aut,
|
|
|
|
context,
|
|
|
|
objects_access,
|
|
|
|
mouse,
|
|
|
|
server,
|
|
|
|
toplevel_window
|
|
|
|
|
2023-07-10 15:55:10 +00:00
|
|
|
]}
|
|
|
|
|
|
|
|
|
|
|
|
def __getattr__(name):
|
|
|
|
if name in imports:
|
|
|
|
return imports[name]
|
2023-08-04 18:27:03 +00:00
|
|
|
try:
|
|
|
|
return getattr(squishtest, name)
|
|
|
|
except AttributeError:
|
|
|
|
raise ImportError(f'Module "driver" has no attribute "{name}"')
|
2023-07-10 15:55:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
squishtest.testSettings.waitForObjectTimeout = configs.timeouts.UI_LOAD_TIMEOUT_MSEC
|
|
|
|
squishtest.setHookSubprocesses(True)
|