Skip to main content

Utilities for testing Python code

Project description

Pipeline Status Coverage Report

Utilities for testing Python code.

Documentation available at


  • Python 3.6 requires PyYAML >= 3.13

  • Python 3.7 requires PyYAML >= 5.1


The Python package manager is PIP.

We strongly suggest that you use VirtualEnv. You could also use VirtualEnvWrapper.

On Ubuntu 18.04:

# install PIP and VirtualEnv
sudo apt install -y python3-pip python3-venv

# install VirtualEnvWrapper
pip3 install virtualenvwrapper
# you may put the following lines in your .bashrc
export PATH=$PATH:$HOME/.local/bin
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source ~/.local/bin/

# clone the template repository
git clone

# create and activate a VirtualEnv
mkvirtualenv --python=python3 python-ndd-test4p
workon python-ndd-test4p

# install all the required dependencies
pip install -e .
pip install -e .[testing]
pip install -e .[documenting]

Test the library within your current environment:

python test

Run the Python linters:

pylint src/
pylint --rcfile=.pylintrc-tests tests/

flake8 src/
flake8 --config=.flake8-tests tests/

Test the documentation examples:

python doctest

Generate the documentation:

python docs

Test the library within the supported environments:

tox --parallel auto

Generate the Wheels package:

python bdist_wheel


This project has been set up using PyScaffold 3.2.1. For details and usage information on PyScaffold see


Project details

Download files

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

Source Distribution

ndd-test4p-0.1.1.tar.gz (28.6 kB view hashes)

Uploaded source

Built Distribution

ndd_test4p-0.1.1-py2.py3-none-any.whl (10.5 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page