示例#1
0
def test_db_kamelot_3():

    old_sys_argv = sys.argv
    sys.argv = ['test_kamelot']
    main()
    sys.argv = old_sys_argv
    req = db['GanttJobsPrediction'].query.all()
    assert len(req) == 5
示例#2
0
def test_db_kamelot_1():

    old_sys_argv = sys.argv
    sys.argv = ['test_kamelot', 'default', time.time()]
    main()
    sys.argv = old_sys_argv
    req = db['GanttJobsPrediction'].query.all()
    assert len(req) == 5