Skip to content

Talk and code for Advanced Python Testing - mocking, property based testing, snapshot testing

License

Notifications You must be signed in to change notification settings

abhidg/advanced-python-testing

Repository files navigation

Advanced Python Testing

Accompanying repository for the RSECon24 talk "Advanced Python Testing - mocking, property based testing, snapshot testing"

Link to slides

Setup

Setup requires Python 3 (>=3.10)

git clone https://github.com/abhidg/advanced-python-testing && cd advanced-python-testing
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt

To run the tests:

python3 -m pytest -v

You can also run test files individually:

python3 -m pytest tests/<file> -v

Further reading

Mocking

Property-based testing