Skip to content

randy3k/UnitTesting-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnitTesting-example

Linux & OSX Windows
Build Status Build status

Example of a deferrable testcase.

Some details about DeferrableTestCase

DeferrableTestCase is used to write the test cases. They are executed by the DeferringTextTestRunner and the runner expects not only regular test functions, but also generators. If the test function is a generator, it does the following

  • if the yielded object is a callable, the runner will evaluate the callable and check its returned value. If the result is True, the runner continues the generator, if not, the runner will wait until the condition is met.

  • If the yielded object is an integer, say x, then it will continue the generator after x ms.

  • Otherwise, the yield statement will always wait for 10 ms.

About

A getting started example for UnitTesting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages