Skip to content

Commit

Permalink
fix path in tests, update result
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-rwu committed Feb 27, 2024
1 parent a813453 commit fe93d32
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions test/outputs/test_model.ros2
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ test_model:
parameters:
'shadows/min_angle':
type: Double
value: -1.52
3 changes: 3 additions & 0 deletions test/outputs/test_system.rossystem
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ test_system:
- "static_map": ac-> "TODO::static_map"
- "static_map": ss-> "TODO::static_map"
- "static_map": sc-> "TODO::static_map"
parameters:
- shadows/min_angle: "/map_server.shadows/min_angle"
value: -1.52
3 changes: 2 additions & 1 deletion test/unittest/test_generate_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# pprint(test_model)

test_dir = "test"
output_folder = "outputs"
output_folder = Path(__file__).parent.parent / "outputs"

expect_result = """
test_model:
Expand All @@ -75,6 +75,7 @@
parameters:
'shadows/min_angle':
type: Double
value: -1.52
"""

Expand Down
2 changes: 1 addition & 1 deletion test/unittest/test_generate_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
)

test_dir = "test"
output_folder = "outputs"
output_folder = Path(__file__).parent.parent / "outputs"

expect_result = """
test_interfaces:
Expand Down
5 changes: 4 additions & 1 deletion test/unittest/test_generate_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
pprint(test_model)

test_dir = "test"
output_folder = "outputs"
output_folder = Path(__file__).parent.parent / "outputs"

expect_result = """
test_system:
Expand All @@ -51,6 +51,9 @@
- "static_map": ac-> "TODO::static_map"
- "static_map": ss-> "TODO::static_map"
- "static_map": sc-> "TODO::static_map"
parameters:
- shadows/min_angle: "/map_server.shadows/min_angle"
value: -1.52
"""

Expand Down

0 comments on commit fe93d32

Please sign in to comment.