Skip to content

small project to show different ways of using python mocks and patching for tests

Notifications You must be signed in to change notification settings

skinnybeans/python-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python testing tutorial

Set up

  1. Create virtual environment: python -m venv .venv --prompt pytest-tutorial
  2. Activate the virtual environment: source .venv/bin/activate
  3. Install the tutorial module: pip install -e .
  4. Install other dependencies: pip install -r requirements.txt
  5. Run the tests pytest -v -s

Take a look through tests/test_mocks.py for various ways on using python mocks and patching to test things.

About

small project to show different ways of using python mocks and patching for tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages