From 0fe683233358a9cb77f68264f7d1980e6ce53b6b Mon Sep 17 00:00:00 2001 From: Luca Krohm Date: Fri, 16 Aug 2024 13:23:04 +0200 Subject: [PATCH] [Tests] adjusted test cases of language to reflect changes made for RetryMonitor --- test/test_language.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_language.py b/test/test_language.py index 9efa7d89e..bfa41d647 100644 --- a/test/test_language.py +++ b/test/test_language.py @@ -271,7 +271,7 @@ def raise_except(): plan = act + code with simulated_robot: - state = plan.perform() + state, _ = plan.perform() self.assertIsInstance(plan.exceptions[plan], PlanFailure) self.assertEqual(len(plan.exceptions.keys()), 1) self.assertEqual(state, State.FAILED) @@ -284,7 +284,7 @@ def raise_except(): plan = act - code with simulated_robot: - state = plan.perform() + state, _ = plan.perform() self.assertIsInstance(plan.exceptions[plan], list) self.assertIsInstance(plan.exceptions[plan][0], PlanFailure) self.assertEqual(len(plan.exceptions.keys()), 1) @@ -298,7 +298,7 @@ def raise_except(): plan = act | code with simulated_robot: - state = plan.perform() + state, _ = plan.perform() self.assertIsInstance(plan.exceptions[plan], list) self.assertIsInstance(plan.exceptions[plan][0], PlanFailure) self.assertEqual(len(plan.exceptions.keys()), 1) @@ -312,7 +312,7 @@ def raise_except(): plan = act ^ code with simulated_robot: - state = plan.perform() + state, _ = plan.perform() self.assertIsInstance(plan.exceptions[plan], list) self.assertIsInstance(plan.exceptions[plan][0], PlanFailure) self.assertEqual(len(plan.exceptions.keys()), 1)