Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong robotidy package name in error message #600

Merged
merged 1 commit into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/releasenotes/4.6.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ New option to generate configuration file with most important options and their

It is only enabled after installing optional ``generate_config`` profile::

pip install robotidy[generate_config]
pip install robotframework-tidy[generate_config]

Generated configuration contains all transformers with their enabled status. Example of the file::

Expand Down
2 changes: 1 addition & 1 deletion docs/source/configuration/config_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Generate configuration file
It is possible to generate configuration files that contains most important options with their default values.
First install ``robotidy`` with ``generate_config`` that contains module for writing TOML files::

pip install robotidy[generate_config]
pip install robotframework-tidy[generate_config]

You can generate configuration now::

Expand Down
2 changes: 1 addition & 1 deletion robotidy/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class MissingOptionalTomliWDependencyError(RobotidyConfigError):
def __init__(self):
super().__init__(
f"Missing optional dependency: tomli_w. Install robotidy with extra `generate_config` "
f"profile:\n\npip install robotidy[generate_config]"
f"profile:\n\npip install robotframework-tidy[generate_config]"
bhirsz marked this conversation as resolved.
Show resolved Hide resolved
)


Expand Down
2 changes: 2 additions & 0 deletions tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
addopts = -p no:warnings
2 changes: 1 addition & 1 deletion tests/utest/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,6 @@ def test_missing_dependency(self, monkeypatch, temporary_cwd):
result = run_tidy(["--generate-config"], exit_code=1)
expected_output = (
"Error: Missing optional dependency: tomli_w. Install robotidy with extra `generate_config` "
"profile:\n\npip install robotidy[generate_config]\n"
"profile:\n\npip install robotframework-tidy[generate_config]\n"
)
assert result.output == expected_output
Loading