Skip to main content

Python Helper

Helper functions and classes for executing python unit tests.

Installation

pip install markus-autotest-helpers-python

General helpers

bound_timeout(seconds)

Return a decorator that will time out the test case after seconds seconds.

A MarkUs-compatible function wrapper based on timeout_decorator that will return the original error message if one is raised instead of a Timeout. A TimeoutError will be raised if the provided time (in seconds) is exceeded.

Usage

@bound_timeout(10)	# This will timeout if my_function takes longer than 10 seconds to run.
def my_function() -> None:
	...

Metadata

Release files for markus-autotest-helpers-python 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for markus-autotest-helpers-python 0.1.0
File Size Uploaded
markus_autotest_helpers_python-0.1.0.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for markus-autotest-helpers-python 0.1.0
File Interpreter ABI Platform
markus_autotest_helpers_python-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.8 kB

Release files / markus_autotest_helpers_python-0.1.0.tar.gz

Download URL markus_autotest_helpers_python-0.1.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
40085135c6b9cfc77165a1e7f8247865386b24df822e30f0d2d5a444858ab5f1
BLAKE2b-256 checksum
How to use checksums
1f03a4c65470d4fbbfa14629732b6ae4b4743a5aac34aa67c668c38261c9d42a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / markus_autotest_helpers_python-0.1.0-py3-none-any.whl

Download URL markus_autotest_helpers_python-0.1.0-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a83afecb641c4533f93f96df428ed72ea64e9c87feee5bba4bb4dbf64583254
BLAKE2b-256 checksum
How to use checksums
36c65cdb9804326be42b15dd16b4e3d3ff6f95d5aa4074ab79525a19950cc990
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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