コード例 #1
0
def test_paste_app_factory(conf_options: dict) -> None:
    """Test the paste_app_factory method"""
    pypiserver.paste_app_factory({}, **conf_options)  # type: ignore
コード例 #2
0
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)
コード例 #3
0
ファイル: test_init.py プロジェクト: pypiserver/pypiserver
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)