Fix Version/s: None
Sprint:TSSW Sprint - Aug 15 - Aug 29
Team:Telescope and Site
Integrate the M2 Python EUI (ts_m2gui) with common module (ts_m2com) in phase 1. This is to reuse the controller in common module (which has been used in the M2 CSC, ts_m2). By doing this, the M2 Python EUI should be able to support the simulation mode and verify its functionality.
The main point in this phase 1 is to remove the duplicated code in ts_m2gui and adapt the qasync.
- is triggering
DM-35952 Integrate the M2 Python EUI with Common Module in Phase 2
Created the issue in pytest-qt for this:
Te-Wei Tsai added a comment - Created the issue in pytest-qt for this: https://github.com/pytest-dev/pytest-qt/issues/448
Please help to review the PR:
Te-Wei Tsai added a comment - Please help to review the PR: https://github.com/lsst-ts/ts_m2gui/pull/17 Thanks!
I realized the pytest-qt and qasync can not be used at the same time for the event loop. The pytest-qt is just a wrapper of QtTest in PySide2. Therefore, it does not recognize the syntax of async or asyncSlot().
One possible work-around is to write a simple function to update the existed code when doing the unit test.