예제 #1
0
파일: conftest.py 프로젝트: ellisonbg/podoc
def pytest_generate_tests(metafunc):
    """Generate the fixtures to test all format test files."""
    if 'lang' in metafunc.fixturenames:
        podoc = create_podoc(with_pandoc=False)
        langs = podoc.languages
        metafunc.parametrize('lang', langs, ids=langs)
    if 'source_target' in metafunc.fixturenames:
        podoc = create_podoc(with_pandoc=False)
        metafunc.parametrize('source_target', podoc.conversion_pairs,
                             ids=(lambda pair: '-to-'.join(pair)))
예제 #2
0
파일: conftest.py 프로젝트: ellisonbg/podoc
def podoc():
    return create_podoc()