From f748ee8ad2dbb21a0ebeea5ac380a203755234ad Mon Sep 17 00:00:00 2001 From: jgatt <jolyne.gatt@irit.fr> Date: Fri, 30 Jun 2023 11:17:51 +0200 Subject: [PATCH] check deprecated option test error --- test/test_assertion_error.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/test_assertion_error.py b/test/test_assertion_error.py index 30fb936..8005c48 100644 --- a/test/test_assertion_error.py +++ b/test/test_assertion_error.py @@ -146,3 +146,14 @@ def test_error_intersection_red_yellow(platform_multiC): make_error_file(3, red_windows=intersecting_windows[j % 2], yellow_windows=intersecting_windows[j // 2],probas=probas) error_user(f"dm_user_multi_behavior_intersecting_red_yellow_{i}_{j}", platform_multiC, "at least one common element in their interval") + +def test_deprecated_option(platform_multiC): + invalid_probas = [ [("yellow_prob_reconfig", 1.0)], [("yellow_prob_degrad", 1.0)], [("yellow_prob_rigid", 1.0)], + [("red_prob_reconfig", 1.0)], [("red_prob_degrad", 1.0)], [("red_prob_rigid", 1.0)],[("red_prob_see_you_later",1.0)], + [("red_prob_renonce",1.0)]] + i = 0 + for probas in invalid_probas: + make_error_file(3, yellow_windows=[[0, 1]], probas=probas) + out_dir = error_user("dm_user_multi_behavior_deprecated_yellow_prob_" + str(i), platform_multiC, "deprecated option") + i += 1 + return \ No newline at end of file -- GitLab