Skip to content

Commit 2262b35

Browse files
Merge pull request steam-bell-92#1468 from Tomeshwari-02/fix/contributing-test-workflow
Align contributing test workflow
2 parents 27c0896 + b8cb9fe commit 2262b35

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,17 +449,17 @@ Once you feel comfortable, you can gradually try `level:intermediate`, `level:ad
449449

450450
## 🧪 Writing Tests
451451

452-
To maintain code quality and ensure zero external dependencies, we use the standard library's `unittest` framework.
452+
To maintain code quality, the repository uses `pytest` for its automated test suite.
453453

454454
1. **Test Directory**: All tests must be placed in the `tests/` directory at the root of the project.
455455
2. **File Naming**: Name your test file starting with `test_` (e.g., `test_armstrong.py`).
456-
3. **No External Modules**: Do not use external libraries like `pytest`. Stick strictly to `unittest`.
456+
3. **Test Runner**: Use `pytest` so local checks match the GitHub Actions workflow.
457457
4. **Mocking Inputs**: For CLI projects, use `subprocess` to provide input via `stdin`, or import helper methods directly.
458458

459459
### Running Tests Locally
460460
To run all tests and verify your changes:
461461
```bash
462-
python -m unittest discover -s tests -v
462+
python -m pytest tests/ -v
463463
```
464464
To run a syntax check across all files (similar to our CI):
465465
```bash

0 commit comments

Comments
 (0)