Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.54 KB

README.md

File metadata and controls

52 lines (38 loc) · 1.54 KB

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