execution-asserts
A collection of asserts for testing performance of the methods.
List of asserts
assertMaximumExecutionTime(max_execution_time_seconds, func, *args, **kwargs)
assertMaximumMemoryUsage(max_memory_usage, func, *args, **kwargs)
How to use
Look at this sample :
import unittest
from execution_assets import ExecutionTest
def my_method(input_parameter):
pass
class MyTestCase(unittest.TestCase, ExecutionTest):
def test_execution_time(self):
self.assertMaximumExecutionTime(0.3, my_method, 'test_value')
def test_memory_usage(self):
self.assertMaximumMemoryUsage(12, my_method, 'test_value')
Metadata
Release files for execution-asserts 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| execution_asserts-0.0.3.tar.gz | 1.8 kB | Without provenance | Details for execution_asserts-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| execution_asserts-0.0.3-py2-none-any.whl | Python 2 | none | any | Details for execution_asserts-0.0.3-py2-none-any.whl |
Total release size: 9.3 kB
Release files / execution_asserts-0.0.3.tar.gz
| Download URL | execution_asserts-0.0.3.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a3de7e68a135b871d66a602e59dd65adf34e62e56bff479365f16ae139363bd
|
|
BLAKE2b-256 checksum How to use checksums |
89b62026b8023a4f57c8315866c364415ae6fbfc13c1491597925299df90b7e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5
|
Release files / execution_asserts-0.0.3-py2-none-any.whl
| Download URL | execution_asserts-0.0.3-py2-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
8dba3b2d8ef420f66d0177f95db584a4ba86c99946e2a9477afe2358b1266380
|
|
BLAKE2b-256 checksum How to use checksums |
68abc825435b415aeabae11ce00df90db339586d829e57c5791a3a5f34472694
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5
|
Security for execution-asserts 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.