Skip to main content

PyPI version PyPI download month PyPI pyversions

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)

Source distribution for execution-asserts 0.0.3
File Size Uploaded
execution_asserts-0.0.3.tar.gz 1.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for execution-asserts 0.0.3
File Interpreter ABI Platform
execution_asserts-0.0.3-py2-none-any.whl Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page