Skip to content

keeppythonweird/catinabox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d5fd52c · Oct 10, 2017

History

56 Commits
May 29, 2016
May 28, 2016
Jan 31, 2016
Oct 6, 2017
May 29, 2016
Oct 2, 2015
May 28, 2016
Oct 2, 2015
Sep 1, 2015
May 28, 2016
Oct 11, 2015
May 28, 2016
Oct 10, 2015
May 28, 2016

Repository files navigation

catinabox - Intro to Testing and Test Automation in Python

Build Status

Coverage status:

Accompanies the Intro to Testing and Test Automation in Python slide deck. Aesthetic inspired by @sailorhg.

catinabox

This repo holds a tutorial which will walk you through adding unit tests, exploring these features of unit testing in general and pytest in particular:

Requirements

  1. Github accounts
  2. Python (2.7 or 3.x) with:
  • pip
  • virtualenv
  1. Git (either Github for Windows or command-line git)
  2. Text editor or IDE (e.g. Pycharm)

Tutorial Steps

  1. Setup and run tests
  2. Test a simple function
  3. Create and build a pull request
  4. Testing incorrect input
  5. Testing classes with fixtures
  6. Using mock and patch
  7. Parameterized tests
  8. Refactoring for unit testability

Solutions are visible by viewing the solutions branch.

cattery

About

Intro to Testing and Test Automation in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages