abstract_test_package is a Python package that facilitates testing with abstract scenarios. Utilizing PyTest, it offers extra utilities to streamline the creation and execution of abstract tests.
Project description
abstract_test_package
This is a Python package that facilitates testing with abstract scenarios. Utilizing PyTest, it offers extra utilities to streamline the creation and execution of abstract tests.
You can locate this package in the abstract_essentials
project at github.io/abstract_endeavors/abstract_essentials/abstract_test_package/
.
Installation
You can install the abstract_test_package
module via pip:
pip install abstract_test_package
Or directly from the source:
git clone https://github.io/abstract_endeavors/abstract_essentials/abstract_test_package/
cd abstract_test_package
python setup.py install
Usage
Below is a usage example of the abstract_test_package
:
from abstract_test_package import create_test, execute_test
test = create_test(name="Test 1", scenario=[...])
execute_test(test)
This example creates an abstract test and then executes it.
Documentation
The abstract_test_package
module provides the following classes and functions:
create_test(name: str = 'Test', scenario: list = [...])
Generates an abstract test scenario with the provided name and details.
execute_test(test: any)
Executes the given abstract test scenario.
validate_test(test: any) -> bool
Verifies if the given object is a valid test scenario.
calculate_test_results(test: any) -> dict
Calculates the results of a given abstract test scenario.
compare_test_results(test1: any, test2: any) -> bool
Compares two test scenarios and returns True if their results are equivalent, False otherwise.
... and many more!
Please refer to the source code for the complete list of classes and functions provided by the module, as well as their detailed documentation.
Contributing
Contributions are welcome! Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.
Contact
If you have any questions, feel free to reach out to us at partners@abstractendeavors.com.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Authors
- putkoff - main developer
This README file was last updated on May 29, 2023.
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
Built Distributions
Hashes for abstract_test_package-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 384c14d374209dbe58fae8c05b161d1df94c9dbf4a53736492f04d5841cf899d |
|
MD5 | 8022a7da53e715e8bd2d5f2dd94b98b7 |
|
BLAKE2b-256 | c7fef63c0541503e04b0bc7a5124160b43df9ebed14991afd07c488abdd1fa65 |
Hashes for abstract_test_package-0.0.3-py3.11.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f599d90a3a9bb3664e8cd28214acbe3003a3f9bdb00ddb7a19b37c4ea4f3783 |
|
MD5 | baf94a7d8857e59e322258c74d9f64ff |
|
BLAKE2b-256 | 65b5b0cb5cab6f9ce52b761a006d73ed7310e15e41e3c6d916132ab78eecf79c |
Hashes for abstract_test_package-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 944046cdbb4caa3c9320d193838e55de7c6c67e6f599dc48e1a7a5b267a51e39 |
|
MD5 | 36892135acb60b05da3ac43266a64500 |
|
BLAKE2b-256 | fdfa2e9c030084289b4b684fa2c54cf09fd0bde8d7d5641c1036aafd0a5bc6da |