mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 11:10:20 +01:00
tests: added assert for cp param and changing test args order (#342)
This commit is contained in:
@@ -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]
|
csv.columns = [column.replace(" ", "_") for column in csv.columns]
|
||||||
results = csv.query("In_Heatup == 1")
|
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]
|
last_val_in_heatup = results.Total_steps.values[-1]
|
||||||
assert int(last_val_in_heatup) >= Def.Consts.num_hs, \
|
assert int(last_val_in_heatup) >= Def.Consts.num_hs, \
|
||||||
Def.Consts.ASSERT_MSG.format("bigger than " +
|
Def.Consts.ASSERT_MSG.format("bigger than " +
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ class Definitions:
|
|||||||
** 1 parameter = Flag - no need for string or int
|
** 1 parameter = Flag - no need for string or int
|
||||||
** 2 parameters = add value for the selected flag
|
** 2 parameters = add value for the selected flag
|
||||||
"""
|
"""
|
||||||
|
|
||||||
cmd_args = [
|
cmd_args = [
|
||||||
['-ew'],
|
['-ew'],
|
||||||
['--play'],
|
['--play'],
|
||||||
@@ -53,9 +52,6 @@ class Definitions:
|
|||||||
['-f', fw_ten],
|
['-f', fw_ten],
|
||||||
['--nocolor'],
|
['--nocolor'],
|
||||||
['-s', css],
|
['-s', css],
|
||||||
# ['-crd', crd], # Tested in checkpoint test
|
|
||||||
['-dg'],
|
|
||||||
['-dm'],
|
|
||||||
['-cp', cp],
|
['-cp', cp],
|
||||||
['--print_networks_summary'],
|
['--print_networks_summary'],
|
||||||
['-tb'],
|
['-tb'],
|
||||||
@@ -63,6 +59,9 @@ class Definitions:
|
|||||||
['-onnx'],
|
['-onnx'],
|
||||||
['-asc'],
|
['-asc'],
|
||||||
['--dump_worker_logs'],
|
['--dump_worker_logs'],
|
||||||
|
['-dg'],
|
||||||
|
['-dm'],
|
||||||
|
# ['-crd', crd], # Tested in checkpoint test
|
||||||
# ['-et', et],
|
# ['-et', et],
|
||||||
# '-lvl': '{level}', # TODO: Add test validation on args_utils
|
# '-lvl': '{level}', # TODO: Add test validation on args_utils
|
||||||
# '-e': '{}', # TODO: Add test validation on args_utils
|
# '-e': '{}', # TODO: Add test validation on args_utils
|
||||||
|
|||||||
Reference in New Issue
Block a user