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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file test-aide-0.1.1.tar.gz.
File metadata
- Download URL: test-aide-0.1.1.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33a1a252c900af2c2f74ab23d0eaa0dadbb3c3414c03f514d8f6e995bb2f5cd5
|
|
| MD5 |
c3cbe6210e79a82939e9cb9d3de29310
|
|
| BLAKE2b-256 |
30de63c9925c311003433063d0e74ded2bd52d0cbbbb5f4651fc648d2d14868f
|
File details
Details for the file test_aide-0.1.1-py3-none-any.whl.
File metadata
- Download URL: test_aide-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
011d86f516738ac6d9ad88d46d6805f33aafbfef605f492485e93ee5fe83e2cc
|
|
| MD5 |
6ec770e48fd7dba261a6733686294295
|
|
| BLAKE2b-256 |
c4432ffe0e84abf1827917fe054f1e7095e46545240b85f0ca89c67b96b64e7a
|