Exemplo n.º 1
0
def test_all_the_way_async(gbkconfig, async_executor):
    filename = allplots.plan(gbkconfig, async_executor)[0]
    if which('ps2pdf'):
        assert filename == gbkconfig['pdf_filename']
    else:
        assert filename == gbkconfig['combined_ps_name']
    async_executor.result(filename, timeout=10)
Exemplo n.º 2
0
def plan(config, executor):
    # unless extract is already disabled.
    if 'allplots' in config:
        return
    config['allplots'] = True
    if which('ps2pdf'):
        return convert_ps_to_pdf(config, executor)
    else:
        return combine_ps_files(config, executor)
Exemplo n.º 3
0
def test_all_the_way(gbkconfig, executor):
    filename = allplots.plan(gbkconfig, executor)[0]
    if which('ps2pdf'):
        assert filename == gbkconfig['pdf_filename']
    else:
        assert filename == gbkconfig['combined_ps_name']