TestSuite4 0.4.1
TestSuite4 is a framework designed to simplify development and testing of TON Contracts. It contains lightweight blockchain emulator making it easy to develop contracts in a TDD-friendly style.
Features:
- Speed - perform dozens of tests in just seconds.
- Complex test scenarios - using Python as a scripting language allows you to create testing scenarios of varying complexity.
- Deep Integration - access all internal messages, measure gas and control time.
- Easy installation - use
pip install tonos-ts4to install TestSuite4 on your local Windows, Linux or macOS. You can also easily compile it from source if needed.
See tutorials for self-documented examples of framework usage.
List of tutorials
- tutorial01_getters.py - Working with getters of various types.
- tutorial02_methods.py - Working with external methods.
- tutorial03_constructors.py - Working with constructors.
- tutorial04_messages.py - Dispatching messages between contracts and catching events.
- tutorial05_deploy.py - Deploying a contract from a contract and working with it through wrappers.
- tutorial06_signatures.py - Working with singed external calls and handling exceptions raised by a contract.
- tutorial07_time.py - Fast-forwarding time however you need to.
- tutorial08_balance.py - Fetching contract balance.
- tutorial09_send_money.py - Send money and watch it travel within the virtual blockchain.
- tutorial10_encode_call.py - Encode the payload for use in the
transfer()call. - tutorial11_set_code.py - Using the contract code update functionality.
Quick Start
Warning You might need to replace python and pip with python3 and pip3 if you are running Linux or macOS.
If you have Python 3.6-3.10, pip and git installed on your system, you can proceed with the following steps.
- Install
tonos-ts4package:
pip install tonos-ts4
- Download tutorials from GitHub:
git clone git@github.com:tonlabs/TestSuite4.git
- ... and run the tutorials:
cd TestSuite4/tutorials
python tutorial01_getters.py
For more information, visit TestSuite4's documentation.
Metadata
Release files for tonos-ts4 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tonos_ts4-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / tonos_ts4-0.4.1-py3-none-any.whl
| Download URL | tonos_ts4-0.4.1-py3-none-any.whl |
|---|---|
| Size | 23.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ea97e64afb0bc2e9f00a9e07ce0e05e525f424dbe48e53fdb34a4ffe530486f
|
|
BLAKE2b-256 checksum How to use checksums |
74cb4eed535dcc59990ad1430b6a6607eecc2fd634ba7410d4792fcde5757413
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9
|
Security for tonos-ts4 0.4.1
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.