Skip to content

Add python-testing materials folder - #993

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-testing-20261203
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-testing-20261203

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Adds the sample code for the updated tutorial Getting Started With Testing in Python (https://realpython.com/python-testing/).

Contents mirror the update draft: the my_sum package, the assert/unittest/pytest test files, the final test.py (Fraction + assertRaises), tox.ini, the GitHub Actions workflow, and the benchmark examples. Pins in requirements.txt match the article's dependencies field.

Verified on Python 3.14 in a fresh venv from requirements.txt: every script and runner (unittest, nose2, pytest, pytest-benchmark, timeit, flake8, black, bandit, tox on py313/py314) behaves as the article shows, including the intentional failures. ruff format --check, ruff check (0.14.1), and dircheck.py pass.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant