Skip to content

imbilltucker/python-unittest-skeleton

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Python Unittest Skeleton

This is a skeleton Python unittest file to allow it to be grabbed and filled in, instead of having to remember the structure.

The "test_skeleton.py" is an example of standard Python tests.

The "test_bottle.py" is some test code for a Bottle web application.

Usage

To use:

  • Check out repository.

  • Copy "test/test_skeleton.py" into your "test" directory.

  • Rename "test_skeleton.py" to something more descriptive. (Note: It should keep the "test_" prefix, so that "make" will run the tests).

  • Edit this file and search for "XXX".

  • Copy "Makefile" into your test directory. It should work without modification.

  • If you are doing bottle web development, copy "test_bottle.py" into your "test" directory and rename it to something more useful.

About

A skeleton Python unit test to boot-strap projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%