Skip to content

Commit

Permalink
fix issue with the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
plauric committed Aug 13, 2024
1 parent e89783c commit 70fec34
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions src/python_testing/TC_SEAR_1_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,7 @@ async def test_TC_SEAR_1_2(self):

test_step = "Manually intervene to remove one or more entries in the SupportedMaps list"
self.print_step("10", test_step)
if self.is_ci:
self.write_to_app_pipe('{"Name": "RemoveMap", "MapId": 3}')
else:
if not self.is_ci:
self.wait_for_user_input(prompt_msg=f"{test_step}, and press Enter when done.\n")

await self.read_and_validate_supported_maps(step=11)
Expand Down Expand Up @@ -272,9 +270,7 @@ async def test_TC_SEAR_1_2(self):

test_step = "Manually intervene to add one or more entries to the SupportedMaps list"
self.print_step("14", test_step)
if self.is_ci:
self.write_to_app_pipe('{"Name": "RemoveMap", "MapId": 3}')
else:
if not self.is_ci:
self.wait_for_user_input(prompt_msg=f"{test_step}, and press Enter when done.\n")

await self.read_and_validate_supported_maps(step=15)
Expand Down Expand Up @@ -307,17 +303,15 @@ async def test_TC_SEAR_1_2(self):

test_step = "Manually intervene to remove one or more entries from the SupportedAreas list"
self.print_step("18", test_step)
if self.is_ci:
self.write_to_app_pipe('{"Name": "RemoveMap", "MapId": 3}')
else:
if not self.is_ci:
self.wait_for_user_input(prompt_msg=f"{test_step}, and press Enter when done.\n")

await self.read_and_validate_supported_areas(step=19)
new_supported_areas = self.areaid_list
asserts.assert_true(len(old_supported_areas) > len(new_supported_areas), "Failed to remove area(s)")

# NOTE the following operations are all part of step 19 - read all these attributes and check the data consistency
# after removing areas(s)
# after removing areas(s)

await self.read_and_validate_selected_areas(step=19)

Expand All @@ -341,9 +335,7 @@ async def test_TC_SEAR_1_2(self):

test_step = "Manually intervene to add one or more entries to the SupportedAreas list"
self.print_step("22", test_step)
if self.is_ci:
self.write_to_app_pipe('{"Name": "RemoveMap", "MapId": 3}')
else:
if not self.is_ci:
self.wait_for_user_input(prompt_msg=f"{test_step}, and press Enter when done.\n")

await self.read_and_validate_supported_areas(step=23)
Expand Down

0 comments on commit 70fec34

Please sign in to comment.