def test_disabled(control, fake_time, robot):
    
    # run disabled mode for 5 seconds
    control.set_autonomous(enabled=False)
    control.run_test(lambda tm: tm < 5)
    
    # make sure disabled mode ran for 5 seconds
    assert int(fake_time.get()) == 5
Runs disabled mode by itself
dataset/ETHPy150Open robotpy/pyfrc/lib/pyfrc/tests/basic.py/test_disabled