Skip to main content

a tool for creating a skeleton for Python unit tests based on source code

Project description

# test-skeleton

[![Build Status](](
[![Py vers](](

A tool for creating a skeleton for Python unit tests based on source code.

Basically, this is a tool for non-TDD development. Use TDD if possible.

A potential use case for this tool could e.g. a legacy project which lacks tests.

## Usage
python -m test_skeleton path/to/your/

The result will be printed to std out. If you want to store it into a file, use `--save` flag. The result will be stored into test_<original_filename> in your current working directory.

## Example

class Klass(object):
klass_var = ''

def __init__(self):
self.a = ''

def property1(self):

def klassmethod1(cls):

def method_with_under_scores(self):

def helper_function1():

class TestKlass:
class TestProperty1:
def test_TODO(self):

class TestKlassmethod1:
def test_TODO(self):

class TestMethodWithUnderScores:
def test_TODO(self):

class TestHelperFunction1:
def test_TODO(self):


Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for test-skeleton, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size test-skeleton-0.1.2.tar.gz (5.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page