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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ae22e7a109eab209262d22ccfe6a55d4e8c9b76bf86c5ac4ddb10489b2faf1a |
|
MD5 | 645b767120f68b16b639eea00d11e998 |
|
BLAKE2b-256 | 2a00d8377e4f0faac385ccf9a4b2533a7f60cd89a5d02af5a5a9655cde84bb04 |
Hashes for abstract_test_package-0.0.4-py3.11.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f571f582d1be000bf522d4f1084fe6a4acc69a367ff55463bcc802ba1cd081ae |
|
MD5 | 40d16e815573c8a918291a6ab887897f |
|
BLAKE2b-256 | b8971b6a3ff392a0a2d81d060c87a7f81b3cf5d3bfcaffa39a2f611c34927988 |
Hashes for abstract_test_package-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47f909935907943ea1a18a1fe4f670bff189a3335932ebf84929587ccedc0047 |
|
MD5 | 4f2bf53b0f9153b3d6ce02d265d3b56e |
|
BLAKE2b-256 | 89bd7a3e31744763089ab0a8f209590416a52f43814d576ba81670cef73ea287 |