Skip to content

Code examples for presentation on introductory unit testing in Python using the pytest library

Notifications You must be signed in to change notification settings

ftobia/getting-started-pytesting-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getting-started-pytesting-code

Code examples for presentation on introductory unit testing in Python using the pytest library

Quick start

  1. Get the code.

     $ git clone https://github.com/ftobia/getting-started-pytesting-code.git
     $ cd getting-started-pytesting
    
  2. Make a virtualenv.

     $ virtualenv env
    
  3. Activate your virtualenv.

     $ source env/bin/activate
     (env)$
    
  4. Install pytest and the sample code library.

     (env)$ pip install pytest
     (env)$ pip install -e .
    
  5. Run pytest

     (env)$ py.test
    
  6. Play around with the code.

Tags you can use

Jump to certain points in the code using git checkout {name-of-tag}.

Tags:

  • beginning
  • bunch
  • arbitrary-markers
  • chunkify
  • install
  • is_listy

About

Code examples for presentation on introductory unit testing in Python using the pytest library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages