def run_all_cases_at_max_speed():
    """Trigger system testing session with all test cases at maximum speed."""
    ### if we are in play or record mode, test sessions can't be
    ### triggered, so notify user via dialog and prevent rest of
    ### method from executing by returning earlier

    if GENERAL_NS.mode_name in ('play', 'record'):

        create_and_show_dialog(CANT_TRIGGER_TESTS_DURING_PLAY_RECORD)
        return

    ### we can't trigger a test session when there are unsaved changes;
    ###
    ### notify user of that via dialog and prevent rest of method from
    ### executing by returning earlier

    if not are_changes_saved():

        create_and_show_dialog(MUST_SAVE_OR_CLOSE_TO_TRIGGER_TESTS)
        return

    ### turn on a flag for saving the test settings for reuse
    ### after the tests are finished
    APP_REFS.system_testing_set = True

    ### trigger system testing session

    raise (

        ResetAppException(
            mode='play',
            data={
                'test_cases_ids': sorted(TEST_ID_TO_TITLE.keys()),
                'playback_speed': 0,
            }
        )

    )
Trigger system testing session with all test cases at maximum speed.
nodezator/editing/playback/systemtesting.py