Skip to content

Commit 207ac0c

Browse files
committed
Use ld.entities instead of describe_sub_entities as of #857 (comment)
Signed-off-by: Christian Ruf <[email protected]>
1 parent 026d898 commit 207ac0c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

launch_xml/test/launch_xml/test_string_join_substitution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def test_nested():
3636
ld = parser.parse_description(root_entity)
3737

3838
assert len(ld.entities) == 2
39-
assert isinstance(ld.describe_sub_entities()[0], DeclareLaunchArgument)
40-
assert isinstance(ld.describe_sub_entities()[1], SetLaunchConfiguration)
39+
assert isinstance(ld.entities[0], DeclareLaunchArgument)
40+
assert isinstance(ld.entities[1], SetLaunchConfiguration)
4141

4242
lc = LaunchContext()
4343
ld.entities[0].visit(lc)

launch_yaml/test/launch_yaml/test_string_join_substitution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def test_nested():
3939
ld = parser.parse_description(root_entity)
4040

4141
assert len(ld.entities) == 2
42-
assert isinstance(ld.describe_sub_entities()[0], DeclareLaunchArgument)
43-
assert isinstance(ld.describe_sub_entities()[1], SetLaunchConfiguration)
42+
assert isinstance(ld.entities[0], DeclareLaunchArgument)
43+
assert isinstance(ld.entities[1], SetLaunchConfiguration)
4444

4545
lc = LaunchContext()
4646
ld.entities[0].visit(lc)

0 commit comments

Comments
 (0)