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