Skip to content

Why doesn't this test use uv run? #1176

@nathanjmcdougall

Description

@nathanjmcdougall

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.

Metadata

Metadata

Labels

testingAdditions or improvements to the test suite

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions