Пример #1
0
def test_run_sysexit(argv):
    with buildenv(argv=argv):
        run()
Пример #2
0
def test_run_by_config(cfg):
    with buildenv(argv=['-c', cfg]):
        run()
Пример #3
0
def test_run_by_argv(argv, capsys):
    with buildenv(argv=argv):
        run()
Пример #4
0
def test_deprecated(argv):
    with buildenv(argv=argv):
        with pytest.warns(GenPACDeprecationWarning):
            run()
Пример #5
0
def test_deprecated(argv):
    with buildenv(argv=argv):
        with pytest.warns(GenPACDeprecationWarning):
            run()
Пример #6
0
def test_run_sysexit(argv):
    with buildenv(argv=argv):
        run()
Пример #7
0
def test_run_by_argv(argv, capsys):
    with buildenv(argv=argv):
        run()
Пример #8
0
def test_run_by_config(cfg):
    with buildenv(argv=['-c', cfg]):
        run()