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)))
def podoc(): return create_podoc()