Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.