human
I wrote the below code

    obj = ScriptInfo(app_import_path='cliapp.app:testapp')
    assert (obj.load_app().name == 'testapp')
    assert (obj.load_app().name == 'testapp')
    def create_app(info):
        return Flask('createapp')
    obj = ScriptInfo(create_app=create_app)
    app = obj.load_app()
    assert (app.name == 'createapp')
    assert (obj.load_app() == app)
    obj = ScriptInfo()
    pytest.raises(NoAppException, obj.load_app)
    monkeypatch.chdir(os.path.abspath(os.path.join(os.path.dirname(__file__), 'test_apps', 'helloworld')))
    obj = ScriptInfo()
    app = obj.load_app()
    assert (app.name == 'hello')
    monkeypatch.chdir(os.path.abspath(os.path.join(os.path.dirname(__file__), 'test_apps', 'cliapp')))
    obj = ScriptInfo()
    app = obj.load_app()
    assert (app.name == 'testapp')

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def test_scriptinfo(test_apps, monkeypatch):