Functions to help in using the pytest testing framework
The pytest-helper package provides several functions which make it easier to set up and run unit tests in Python using the pytest testing framework. For example, there is a function to make modules self-testing whenever they are executed as scripts, and a function to simplify making modifications to the Python search path. One of the most useful features is that relative pathnames are relative to the directory of the file in which they occur (i.e., not relative to the CWD). This package makes use of pytest but is independent of the official pytest project.
For examples and full documentation, see https://abarker.github.io/pytest-helper
The easiest way to install is to install from PyPI using pip:
pip install pytest-helper