예제 #1
0
파일: jobs.py 프로젝트: haje01/wzdat
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