Helper functions and classes for executing Python unit tests
Project description
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:
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file markus_autotest_helpers_python-0.1.0.tar.gz.
File metadata
- Download URL: markus_autotest_helpers_python-0.1.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40085135c6b9cfc77165a1e7f8247865386b24df822e30f0d2d5a444858ab5f1
|
|
| MD5 |
22bb67d9c66bae0c23850d3de3edcfc9
|
|
| BLAKE2b-256 |
1f03a4c65470d4fbbfa14629732b6ae4b4743a5aac34aa67c668c38261c9d42a
|
File details
Details for the file markus_autotest_helpers_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: markus_autotest_helpers_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a83afecb641c4533f93f96df428ed72ea64e9c87feee5bba4bb4dbf64583254
|
|
| MD5 |
05fb306bef8268167460db6e35fbc147
|
|
| BLAKE2b-256 |
36c65cdb9804326be42b15dd16b4e3d3ff6f95d5aa4074ab79525a19950cc990
|