added motion simulator feature
This commit is contained in:
@@ -116,7 +116,10 @@ def make_window(qt_app, monkeypatch):
|
||||
from orisys_app_shared.i18n import set_locale
|
||||
|
||||
set_locale(str(prefs.get("language") or "zh_CN"))
|
||||
window = AutoCalMainWindow(prefs=prefs)
|
||||
# The bundle is not auto-loaded here: rasterising 1024x1024 costs about a
|
||||
# second, and every window in this suite would pay it. The one test that
|
||||
# covers auto-loading turns it back on for itself.
|
||||
window = AutoCalMainWindow(prefs=prefs, auto_load_bundle=False)
|
||||
# Swap in the simulated platform: no test in this suite touches a DLL.
|
||||
window.poller.service._transport = DemoTransport() # noqa: SLF001
|
||||
created.append(window)
|
||||
|
||||
Reference in New Issue
Block a user