Skip to main content

Symbiont Assembly SDK

Project description

Pytest-Assembly

A pytest plugin to run tests for Smart Contracts on Assembly. For examples of comprehensive tests, please see one of our example contracts; Auction, Chat

Works with Python 3.9.1+

Usage

Note: A running network is required to run tests, a local development network can be started easily with the sym tool.

    pytest my_contract_test.py \
           --contract-path path/to/contracts/to/be/tested \
           --connection-file $HOME/.symbiont/assembly-dev/mock-network/default/network-config.json \
           -vvv -s --skip-consistency-check

Documentation about how to write pytests for Assembly smart contracts can be found on the Symbiont Customer Portal

Migration from 2.0.2 to 2.0.3

Due to a lot of duplicate code in the assembly-client and pytest-assembly packages, we have removed some of the assembly and _assembly. modules from the pytest-assembly package.

All equivalent packages can be found in the the assembly-client package, which is installed as a dependency of the pytest-assembly plugin if installed via pip.

For reference here are some of the updated imports you'll need to change in your code:

Old module New Module
assembly.lang_8 assembly_client.api.types or assembly_client.api.contracts
_assembly.lib.util assembly_client.api
_assembly.api.* assembly_client.api.*

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file symbiont_io.pytest_assembly-2.0.4.dev1-py3-none-any.whl.

File metadata

  • Download URL: symbiont_io.pytest_assembly-2.0.4.dev1-py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.1

File hashes

Hashes for symbiont_io.pytest_assembly-2.0.4.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 79d2fcbb1e47c9fdf37a31498d9d6f2d9743f682a63f9c35edd4e9afa0b47d05
MD5 a5c36b5f9e8a67e15dd60426b8001040
BLAKE2b-256 42ec3175fa4563058b72068f00ba1c7879776f22a96879df7a02a5ebc5930e6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page