A library providing dictionary types for interspecting code behavior during test or debugging.
Project description
Testionary
A library providing tools to inspect dicionaries during testing.
Installation
Using pip:
pip install testionary
or using uv for project management:
uv add testionary
Usage
# My library code:
def set_danger(enemy):
if enemy["type"] == "Rabbit":
enemy["danger"] = 9000
# My test:
from testionary.basic import BasicTrackingDict
def test_set_danger():
tracked_dict = BasicTrackingDict({"type": "Rabbit", "danger": 42})
set_danger(tracked_dict)
assert "type" in tracked_dict.accessed_keys
assert "danger" in tracked_dict.modified_keys
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
testionary-0.1.0.tar.gz
(1.9 kB
view details)
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 testionary-0.1.0.tar.gz.
File metadata
- Download URL: testionary-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b2ffcae9e771cd0a67bde76354b7fd8d1bbc1863eb7b419d6ff211256fe1c4c
|
|
| MD5 |
648ec3a5097bda2b82a57efb5a6a9cc9
|
|
| BLAKE2b-256 |
2d37bc17b4c9d2c151b5d567d5dcb4c77d36ed67dd26e1d771186d6167074912
|
File details
Details for the file testionary-0.1.0-py3-none-any.whl.
File metadata
- Download URL: testionary-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2fd546bd32d018ed2e0eb47c941fcdbd4a5981d882a5c7142da3af3ec9428b6
|
|
| MD5 |
0888692641808de400e9eb24a472edf3
|
|
| BLAKE2b-256 |
35f00d5b4362d1e6a839c2d3281ba8f6fc139c906d09f7b6b8e1333753b2fe4e
|