Skip to content

Commit

Permalink
ros: fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: artivis <jeremie.deray@canonical.com>
  • Loading branch information
artivis committed Jul 11, 2023
1 parent 6986b01 commit ad72ee5
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 29 deletions.
80 changes: 51 additions & 29 deletions tests/unit/commands/test_list_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,32 @@ def test_command(emitter, command):
emitter.assert_message(
dedent(
"""\
Extension name Supported bases
---------------- ----------------------
fake-extension core22
flutter-beta core18
flutter-dev core18
flutter-master core18
flutter-stable core18
gnome core22
gnome-3-28 core18
gnome-3-34 core18
gnome-3-38 core20
kde-neon core18, core20, core22
ros1-noetic core20
ros2-foxy core20
ros2-humble core22"""
Extension name Supported bases
---------------------- ----------------------
fake-extension core22
flutter-beta core18
flutter-dev core18
flutter-master core18
flutter-stable core18
gnome core22
gnome-3-28 core18
gnome-3-34 core18
gnome-3-38 core20
kde-neon core18, core20, core22
ros1-noetic core20
ros1-noetic-desktop core20
ros1-noetic-perception core20
ros1-noetic-robot core20
ros1-noetic-ros-base core20
ros1-noetic-ros-core core20
ros2-foxy core20
ros2-foxy-desktop core20
ros2-foxy-ros-base core20
ros2-foxy-ros-core core20
ros2-humble core22
ros2-humble-desktop core22
ros2-humble-ros-base core22
ros2-humble-ros-core core22"""
)
)

Expand All @@ -57,19 +68,30 @@ def test_command_extension_dups(emitter, command):
emitter.assert_message(
dedent(
"""\
Extension name Supported bases
---------------- ----------------------
flutter-beta core18
flutter-dev core18
flutter-master core18
flutter-stable core18
gnome core22
gnome-3-28 core18
gnome-3-34 core18
gnome-3-38 core20
kde-neon core18, core20, core22
ros1-noetic core20
ros2-foxy core20
ros2-humble core22"""
Extension name Supported bases
---------------------- ----------------------
flutter-beta core18
flutter-dev core18
flutter-master core18
flutter-stable core18
gnome core22
gnome-3-28 core18
gnome-3-34 core18
gnome-3-38 core20
kde-neon core18, core20, core22
ros1-noetic core20
ros1-noetic-desktop core20
ros1-noetic-perception core20
ros1-noetic-robot core20
ros1-noetic-ros-base core20
ros1-noetic-ros-core core20
ros2-foxy core20
ros2-foxy-desktop core20
ros2-foxy-ros-base core20
ros2-foxy-ros-core core20
ros2-humble core22
ros2-humble-desktop core22
ros2-humble-ros-base core22
ros2-humble-ros-core core22"""
)
)
3 changes: 3 additions & 0 deletions tests/unit/extensions/test_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def test_get_extension_names():
assert extensions.get_extension_names() == [
"gnome",
"ros2-humble",
"ros2-humble-ros-core",
"ros2-humble-ros-base",
"ros2-humble-desktop",
"kde-neon",
"fake-extension-experimental",
"fake-extension-extra",
Expand Down

0 comments on commit ad72ee5

Please sign in to comment.