Based on code review: - Use qtbot.waitSignal to test a signal firing - Use pytest.mark.xfail for an expected test failure - Ensure there are 2 newlines between module-level functions