Beispiel #1
0
def test_notebook_util():
    nbdir = get_notebook_dir()
    nbs = [nb for nb in iter_notebooks(nbdir)]
    assert len(nbs) == 13
    nbms = [(nb, mi) for nb, mi in iter_notebook_manifest_input(nbdir)]
    assert len(nbms) == 11
    path = os.path.join(nbdir, 'test-notebook3.ipynb')
    assert path == find_hdf_notebook_path('haje01', 'test')
Beispiel #2
0
def fxhdftest2():
    with HDF('haje01') as hdf:
        if 'test' not in hdf.store:
            # check hdf notebook has run
            path = find_hdf_notebook_path('haje01', 'test')
            assert path is not None
            update_notebook_by_run(path)
        test = hdf.store['test']
        if 'test2' not in hdf.store:
            hdf.store['test2'] = test
    yield None