diff --git a/rockcraft/commands/extensions.py b/rockcraft/commands/extensions.py index 7e2266c20..12b6e30b6 100644 --- a/rockcraft/commands/extensions.py +++ b/rockcraft/commands/extensions.py @@ -82,13 +82,13 @@ class ExtensionsCommand(ListExtensionsCommand, abc.ABC): class ExpandExtensionsCommand(AppCommand, abc.ABC): - """Expand the extensions in the snapcraft.yaml file.""" + """Expand the extensions in the rockcraft.yaml file.""" name = "expand-extensions" - help_msg = "Expand extensions in snapcraft.yaml" + help_msg = "Expand extensions in rockcraft.yaml" overview = textwrap.dedent( """ - Extensions listed rockcraft.yaml will be + Extensions listed in rockcraft.yaml will be expanded and shown as output. """ ) diff --git a/tests/unit/commands/test_expand_extensions.py b/tests/unit/commands/test_expand_extensions.py index 5516461dc..863c13b0e 100644 --- a/tests/unit/commands/test_expand_extensions.py +++ b/tests/unit/commands/test_expand_extensions.py @@ -71,6 +71,13 @@ def setup_extensions(mock_extensions): extensions.register(FullExtension.NAME, FullExtension) +def test_expand_extensions_help_references_rockcraft_yaml(): + assert ExpandExtensionsCommand.help_msg == "Expand extensions in rockcraft.yaml" + assert "rockcraft.yaml" in ExpandExtensionsCommand.overview + assert "snapcraft.yaml" not in ExpandExtensionsCommand.help_msg + assert "snapcraft.yaml" not in ExpandExtensionsCommand.overview + + @pytest.mark.usefixtures("tmp_path", "setup_extensions") def test_expand_extensions(emitter, fake_app_config): # ExpandExtensionsCommand loads "rockcraft.yaml" on the cwd