def test_paste_app_factory(conf_options: dict) -> None: """Test the paste_app_factory method""" pypiserver.paste_app_factory({}, **conf_options) # type: ignore
def test_paste_app_factory(conf_options, monkeypatch): """Test the paste_app_factory method""" monkeypatch.setattr('pypiserver.core.configure', lambda **x: (x, [x.keys()])) pypiserver.paste_app_factory({}, **conf_options)