Test for script result.
Project description
Cli_results
Simple lib to test results or script runs from command line.
Install
Install from pypi:
pip install cli_result
Or install from github repo:
pip install git+https://github.com/ayasyrev/cli_result.git
Usage.
Main purpose test results of examples run. We run all scripts in examples folder and compare results with expected results. Check it at different python versions.
So we can be sure that all scripts work and has similar behaviors in different python versions.
It's not suitable to run script that supposed to run for a long time or resources are limited.
But it's good for quick tests, to check configs and shorts demos (examples).
Put your script in examples folder and expected results in results folder.
Arguments for tests at file name same as script name + __args.txt.
from cli_result.core import check_examples, Cfg
result = check_examples()
This run all scripts in examples folder with arguments from __args.txt.
file and compare with results at results/
folder.
assert result is None
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
Hashes for cli_result-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bec98fb1ddb52fe54bd8b60de77d7597909c29f8fbe6a84df23b9919c778a644 |
|
MD5 | c0fdb3166cc318c3c58d52ddd79c2890 |
|
BLAKE2b-256 | e502ec2435b654691b7a0d5a68713fdbf2832ac6ecce6884b7b0a034bf1225fd |