Skip to content

Commit 285a080

Browse files
Continue to align tests with new expectations
1 parent dd06000 commit 285a080

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

tests/usethis/_ui/interface/test_init.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def test_pre_commit_included(self, tmp_path: Path):
3838
"☐ Run 'uv run mkdocs build' to build the documentation.\n"
3939
"☐ Run 'uv run mkdocs serve' to serve the documentation locally.\n"
4040
"✔ Adding recommended linters.\n"
41-
"☐ Run 'uv run ruff check --fix' to run the Ruff linter with autofixes.\n"
4241
"☐ Run 'uv run deptry src' to run deptry.\n"
42+
"☐ Run 'uv run ruff check --fix' to run the Ruff linter with autofixes.\n"
4343
"✔ Adding recommended formatters.\n"
4444
"☐ Run 'uv run ruff format' to run the Ruff formatter.\n"
4545
"☐ Run 'uv run pre-commit run pyproject-fmt --all-files' to run pyproject-fmt.\n"
@@ -91,8 +91,8 @@ def test_readme_example(self, tmp_path: Path):
9191
☐ Run 'uv run mkdocs build' to build the documentation.
9292
☐ Run 'uv run mkdocs serve' to serve the documentation locally.
9393
✔ Adding recommended linters.
94-
☐ Run 'uv run ruff check --fix' to run the Ruff linter with autofixes.
9594
☐ Run 'uv run deptry src' to run deptry.
95+
☐ Run 'uv run ruff check --fix' to run the Ruff linter with autofixes.
9696
✔ Adding recommended formatters.
9797
☐ Run 'uv run ruff format' to run the Ruff formatter.
9898
☐ Run 'uv run pyproject-fmt pyproject.toml' to run pyproject-fmt.
@@ -162,8 +162,8 @@ def test_bitbucket_docstyle_and_status(self, tmp_path: Path):
162162
"☐ Run 'uv run mkdocs build' to build the documentation.\n"
163163
"☐ Run 'uv run mkdocs serve' to serve the documentation locally.\n"
164164
"✔ Adding recommended linters.\n"
165-
"☐ Run 'uv run ruff check --fix' to run the Ruff linter with autofixes.\n"
166165
"☐ Run 'uv run deptry src' to run deptry.\n"
166+
"☐ Run 'uv run ruff check --fix' to run the Ruff linter with autofixes.\n"
167167
"✔ Adding recommended formatters.\n"
168168
"☐ Run 'uv run ruff format' to run the Ruff formatter.\n"
169169
"☐ Run 'uv run pre-commit run pyproject-fmt --all-files' to run pyproject-fmt.\n"
@@ -198,8 +198,8 @@ def test_none_backend(self, tmp_path: Path):
198198
"☐ Run 'mkdocs build' to build the documentation.\n"
199199
"☐ Run 'mkdocs serve' to serve the documentation locally.\n"
200200
"✔ Adding recommended linters.\n"
201-
"☐ Run 'ruff check --fix' to run the Ruff linter with autofixes.\n"
202201
"☐ Run 'deptry src' to run deptry.\n"
202+
"☐ Run 'ruff check --fix' to run the Ruff linter with autofixes.\n"
203203
"✔ Adding recommended formatters.\n"
204204
"☐ Run 'ruff format' to run the Ruff formatter.\n"
205205
"☐ Run 'pyproject-fmt pyproject.toml' to run pyproject-fmt.\n"

tests/usethis/_ui/interface/test_lint.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ def test_none_backend_pyproject_toml(self, tmp_path: Path):
6161
assert result.exit_code == 0, result.output
6262
assert (tmp_path / "pyproject.toml").exists()
6363
assert result.output.replace("\n", "") == (
64+
"☐ Add the dev dependency 'deptry'.\n"
65+
"✔ Adding deptry config to 'pyproject.toml'.\n"
66+
"☐ Run 'deptry .' to run deptry.\n"
6467
"☐ Add the dev dependency 'ruff'.\n"
6568
"✔ Adding Ruff config to 'pyproject.toml'.\n"
6669
"✔ Selecting Ruff rules 'A', 'C4', 'E4', 'E7', 'E9', 'F', 'FLY', 'FURB', 'I', 'PLE', 'PLR', 'RUF', 'SIM', 'UP' in 'pyproject.toml'.\n"
6770
"✔ Ignoring Ruff rules 'PLR2004', 'SIM108' in 'pyproject.toml'.\n"
6871
"☐ Run 'ruff check --fix' to run the Ruff linter with autofixes.\n"
69-
"☐ Add the dev dependency 'deptry'.\n"
70-
"☐ Run 'deptry .' to run deptry.\n"
7172
).replace("\n", "")

0 commit comments

Comments
 (0)