#NEWLINE# def test_simple( self ) : #NEWLINE# #INDENT# project = self . create_project ( ) #NEWLINE# build = self . create_build ( project = project , status = Status . finished , result = Result . passed , duration = 5050 ) #NEWLINE# job = self . create_job ( build ) #NEWLINE# plan = self . create_plan ( project ) #NEWLINE# self . create_job_plan ( job , plan ) #NEWLINE# update_project_plan_stats ( project_id = project . id . hex , plan_id = plan . id . hex ) #NEWLINE# db . session . expire ( plan ) #NEWLINE# assert ( plan . avg_build_time == 5050 )