def test_construct_decorate_minimal(session):
    """This is an exception when FuncTask returns itself
    (__init__ cannot return anything else)"""
    # Going to tempdir to dump the log files there
    session.config.execution = 'main'

    with pytest.warns(UserWarning):
        @FuncTask
        def do_stuff():
            pass

    assert set() == session.tasks
This is an exception when FuncTask returns itself
(__init__ cannot return anything else)
rocketry/test/task/func/test_construct.py