Skip to content

p00j4/unittest_with_nose

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why

If you code and want to protect your code from breaking in future and automatic test in present, unit tests is the way. And unit test with test runner nosetest makes TDD easier & powerful.

What

Sample project to understand writing unittests nicely using noetstests.

Major components

  • Basics: Read here

  • How to cover most cases with least writing (parameterize your test)

  • How to speed up tests which have DB calls or external API calls (use mock & autospec)

    Step by Step Samples here

For all questions why or why not Test Driven Development Read here

About

Sample unit tests in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%