Skip to content

Commit 1bc8670

Browse files
committed
Point contributors at scripts/test; keep a test's quoted tutorial line in sync
1 parent f2bdbb7 commit 1bc8670

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ uv tool install pre-commit --with pre-commit-uv --force-reinstall
8686

8787
3. Make your changes
8888

89-
4. Ensure tests pass:
89+
4. Ensure tests pass (`scripts/test` runs them the way CI does, with coverage):
9090

9191
```bash
92-
uv run pytest
92+
./scripts/test
9393
```
9494

9595
5. Run type checking:

tests/docs_src/test_uri_templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_dotdot_is_a_component_check_not_a_substring_scan() -> None:
129129
async def test_safe_join_serves_a_file_inside_the_base_directory(
130130
tmp_path: Path, monkeypatch: pytest.MonkeyPatch
131131
) -> None:
132-
"""tutorial002: `safe_join(DOCS_ROOT, path).read_text()` returns the file under the base."""
132+
"""tutorial002: `safe_join(DOCS_ROOT, path).read_text(encoding="utf-8")` returns the file under the base."""
133133
(tmp_path / "printing").mkdir()
134134
(tmp_path / "printing" / "setup.md").write_text("# Printer setup", encoding="utf-8")
135135
monkeypatch.setattr(tutorial002, "DOCS_ROOT", tmp_path)

0 commit comments

Comments
 (0)