Metadata-Version: 2.1
Name: symbiont-io.pytest-assembly
Version: 2.0.4.dev7
Summary: Symbiont Assembly SDK
Home-page: http://symbiont.io
Author: Symbiont
Author-email: ecosystem@symbiont.io
Maintainer: Symbiont Ecosystem Team
Maintainer-email: ecosystem@symbiont.io
License: UNKNOWN
Keywords: symbiont,bitcoin
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3 :: Only 
Classifier: Topic :: Office/Business :: Financial
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Distributed Computing
Provides: sailfish
Description-Content-Type: text/markdown
Requires-Dist: base58 (==2.1.1)
Requires-Dist: cryptography (==36.0.1)
Requires-Dist: dulwich (==0.20.28)
Requires-Dist: honeycomb-beeline (==3.0.0)
Requires-Dist: hypothesis (==6.34.2)
Requires-Dist: luhn (==0.2.0)
Requires-Dist: msgpack (==1.0.3)
Requires-Dist: psutil (==5.9.0)
Requires-Dist: pytest-benchmark (==3.4.1)
Requires-Dist: pytest (==6.2.5)
Requires-Dist: python-dateutil (==2.8.2)
Requires-Dist: pyyaml (==6.0)
Requires-Dist: simplejson (==3.17.6)
Requires-Dist: symbiont-io.assembly-client (==2.0.4.dev7)
Requires-Dist: urllib3 (==1.26.7)

# 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](https://github.com/symbiont-io/sympl_auction/), [Chat](https://github.com/symbiont-io/sympl_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](https://portal.symbiont.io)

## 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.*` |


