From 629d4622a7a6ec23a691efcc5a4f5e40ae1fda5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Sun, 1 Sep 2024 20:18:41 +0200 Subject: [PATCH] feat: Add assertions for task state in test_dynamic_publication and test_dynamic_service --- .../tests/core/services/generics/test_dynamic_publication.py | 2 ++ server/src/tests/core/services/generics/test_dynamic_service.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/server/src/tests/core/services/generics/test_dynamic_publication.py b/server/src/tests/core/services/generics/test_dynamic_publication.py index 5a2838dda..31fd035c1 100644 --- a/server/src/tests/core/services/generics/test_dynamic_publication.py +++ b/server/src/tests/core/services/generics/test_dynamic_publication.py @@ -216,6 +216,8 @@ class DynamicPublicationTest(UDSTestCase): # Counter should be greater than 16 self.assertGreater(counter, 16) + # And state shoudl be finished + self.assertEqual(state, types.states.TaskState.FINISHED) EXPECTED_DEPLOY_ITERATIONS_INFO: typing.Final[list[DynamicPublicationIterationInfo]] = [ diff --git a/server/src/tests/core/services/generics/test_dynamic_service.py b/server/src/tests/core/services/generics/test_dynamic_service.py index 203d11496..3201861a2 100644 --- a/server/src/tests/core/services/generics/test_dynamic_service.py +++ b/server/src/tests/core/services/generics/test_dynamic_service.py @@ -340,6 +340,8 @@ class DynamicServiceTest(UDSTestCase): # Counter should be greater than 16 self.assertGreater(counter, 16) + # And state shoudl be finished + self.assertEqual(state, types.states.TaskState.FINISHED) EXPECTED_DEPLOY_ITERATIONS_INFO: typing.Final[list[DynamicServiceIterationInfo]] = [