Skip to main content

Package of helper functions to be used for unit testing

Project description

test-aide


test-aide is a lightweight package containing helper functions to simplify certain aspects of unit testing. See the documentation for the full list of features.

The equality module contains helpers that simplfy asserting equality when working with pandas or numpy types, in particular when working with these types nested in other data structures e.g. a dict containing pandas.DataFrame object(s).

The functions module contains helpers that simplfy asserting that a function was called in a particular way. The functions assert_function_call and assert_function_call_count are available to be used as context managers to test a function is called in a certain way and called a specific number of times respectively.

Installation

test-aide can be installed from PyPI simply with;

pip install test-aide

Documentation

Documentation for the package can be found on readthedocs.

To build the html documentation locally, from the docs directory run the following;

make html

Build and test

The test framework we are using for this project is pytest, to run the tests follow the steps below.

First clone the repo and move to the root directory;

git clone https://github.com/lvgig/test-aide.git
cd test-aide

Then install test-aide in editable mode;

pip install -e . -r requirements-dev.txt

Then run the tests simply with pytest;

pytest

Contribute

test-aide is under active development, we're super excited if you're interested in contributing!

See the CONTRIBUTING file for the full details of our working practices.

For bugs and feature requests please open an issue.

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

test-aide-0.1.1.tar.gz (10.5 kB view hashes)

Uploaded Source

Built Distribution

test_aide-0.1.1-py3-none-any.whl (11.2 kB view hashes)

Uploaded Python 3

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