def test_fdsout(name, owhm2_ws, valid_ws): ut.ErrorFile.write_model_name(name) owhm2 = ut.FarmOutputs(ws=owhm2_ws, outname=name) owhm2.raw_to_stress_period() valid = ut.FarmOutputs(ws=valid_ws, outname=name) valid.raw_to_stress_period() if owhm2.success and valid.success: assert ut.farm_outputs_compare(owhm2, valid, incremental_tolerance=0.05, budget_tolerance=0.05) else: assert owhm2.success assert valid.success
def test_fbdetails(name, owhm2_ws, valid_ws): ut.ErrorFile.write_model_name(name) owhm2 = ut.FarmOutputs(ws=owhm2_ws, outname=name) owhm2.raw_to_stress_period() valid = ut.FarmOutputs(ws=valid_ws, outname=name) valid.raw_to_stress_period() # todo: setup the success flag with the FarmOutput reader! if owhm2.success and valid.success: assert ut.farm_outputs_compare(owhm2, valid, incremental_tolerance=0.05, budget_tolerance=0.05) else: assert owhm2.success assert valid.success