-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
testingAdditions or improvements to the test suiteAdditions or improvements to the test suite
Description
usethis-python/tests/usethis/_core/test_core_tool.py
Lines 3501 to 3514 in 2547dd8
| class TestHow: | |
| def test_both_linter_and_formatter( | |
| self, uv_init_dir: Path, capfd: pytest.CaptureFixture[str] | |
| ): | |
| # Act | |
| with change_cwd(uv_init_dir), files_manager(): | |
| use_ruff(how=True, linter=True, formatter=True) | |
| # Assert | |
| out, _ = capfd.readouterr() | |
| assert out == ( | |
| "☐ Run 'ruff check --fix' to run the Ruff linter with autofixes.\n" | |
| "☐ Run 'ruff format' to run the Ruff formatter.\n" | |
| ) |
I would have expected
assert out == (
"☐ Run 'uv run ruff check --fix' to run the Ruff linter with autofixes.\n"
"☐ Run 'uv run ruff format' to run the Ruff formatter.\n"
)
Since the test uses uv_init_dir.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
testingAdditions or improvements to the test suiteAdditions or improvements to the test suite