Skip to content

Commit 428ab1d

Browse files
Update tests and README to reflect new behaviour
1 parent a54ef1c commit 428ab1d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ $ uvx usethis init
120120
☐ Add test files to the '/tests' directory with the format 'test_*.py'.
121121
☐ Add test functions with the format 'test_*()'.
122122
☐ Run 'uv run pytest' to run the tests.
123+
☐ Run 'uv run pytest --cov' to run your tests with Coverage.py.
123124
```
124125

125126
To use Ruff on an existing project, run:

tests/usethis/_interface/test_init.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def test_pre_commit_included(self, tmp_path: Path):
3939
"☐ Add test files to the '/tests' directory with the format 'test_*.py'.\n"
4040
"☐ Add test functions with the format 'test_*()'.\n"
4141
"☐ Run 'uv run pytest' to run the tests.\n"
42+
"☐ Run 'uv run pytest --cov' to run your tests with Coverage.py.\n"
4243
)
4344

4445
# Check the pre-commit hooks are added in the correct order
@@ -87,6 +88,7 @@ def test_readme_example(self, tmp_path: Path):
8788
☐ Add test files to the '/tests' directory with the format 'test_*.py'.
8889
☐ Add test functions with the format 'test_*()'.
8990
☐ Run 'uv run pytest' to run the tests.
91+
☐ Run 'uv run pytest --cov' to run your tests with Coverage.py.
9092
"""
9193
)
9294

@@ -156,6 +158,7 @@ def test_bitbucket_docstyle_and_status(self, tmp_path: Path):
156158
"☐ Add test files to the '/tests' directory with the format 'test_*.py'.\n"
157159
"☐ Add test functions with the format 'test_*()'.\n"
158160
"☐ Run 'uv run pytest' to run the tests.\n"
161+
"☐ Run 'uv run pytest --cov' to run your tests with Coverage.py.\n"
159162
"✔ Adding Bitbucket Pipelines configuration.\n"
160163
"☐ Run your pipeline via the Bitbucket website.\n"
161164
)

0 commit comments

Comments
 (0)