Test 3rd party integrations.ΒΆ

[ ]:
import papermill, pathlib, tqdm
[1]:
def remove_output(path):
    try: __import__('os').remove(path)
    except: ...
[2]:
def test_execute():
    in_, out = pathlib.Path('pidgy/tests/parameterized_notebook.md.ipynb'), pathlib.Path('pidgy/tests/_parameterized_notebook.md.ipynb')
    assert in_.exists()
    papermill.execute_notebook(str(in_), str(out), kernel_name='pidgy', parameters=dict(alpha=100))
    assert out.exists()
    remove_output(out)