1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-18 03:30:19 +01:00

tests: added assert for cp param and changing test args order (#342)

This commit is contained in:
anabwan
2019-06-05 00:16:50 +03:00
committed by GitHub
parent e49aac05aa
commit 0aa5359d63
2 changed files with 7 additions and 4 deletions

View File

@@ -391,6 +391,10 @@ def validate_arg_result(flag, p_valid_params, clres=None, process=None,
csv.columns = [column.replace(" ", "_") for column in csv.columns]
results = csv.query("In_Heatup == 1")
total_values = len(results.Total_steps.values)
assert len(results.Total_steps.values) > 0, \
Def.Consts.ASSERT_MSG("no data in csv", str(total_values))
last_val_in_heatup = results.Total_steps.values[-1]
assert int(last_val_in_heatup) >= Def.Consts.num_hs, \
Def.Consts.ASSERT_MSG.format("bigger than " +