Пример #1
0
def update_notebooks():
    '''Check notebook's dependency and run for dashboard if needed.'''
    logging.debug('update_notebooks start')
    nbdir = get_notebook_dir()
    skip_nbs = [os.path.join(nbdir, 'test-notebook6.ipynb')]
    update_all_notebooks(skip_nbs)
    logging.debug('update_notebooks done')
Пример #2
0
def test_notebook_resolve(fxsoldir, fxnewfile):
    _, runs = update_all_notebooks()

    _, runs = update_all_notebooks()
    assert len(runs) == 0

    # add new file
    with open(fxnewfile, 'w') as f:
        f.write('2014-03-05 23:30 [ERROR] - Async\n')

    _, runs = update_all_notebooks()
    assert len(runs) == 4