Skip to main content

Pytest support for cairo-lang and starknet

Project description

pytest-cairo: pytest support for cairo-lang and starknet

Usage

To install:

$ pip install pytest-cairo

The plugin will automatically run any function with a test prefix, from files with a test_ prefix and a .cairo extension.

For examples see test resources.

Development

To install development dependencies, run:

$ pip install -r requirements-dev.txt

Run tests with:

$ pytest

or:

$ docker-compose run test

To run tests against all supported interpreters (using docker-compose):

$ tox

This assumes tox, docker and docker-compose are installed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-cairo-0.0.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

pytest_cairo-0.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pytest-cairo-0.0.2.tar.gz.

File metadata

  • Download URL: pytest-cairo-0.0.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • 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.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.8

File hashes

Hashes for pytest-cairo-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6fbdb047321b4f68cb11592a77106fe64dc0d0f3c1ef445a221101041ac71c52
MD5 302f28a7e1bcd13c584e6ca70b79d694
BLAKE2b-256 afdd49d8846d12918298bd98ba206083c754f09b0d6daa6694b9806ec3a66557

See more details on using hashes here.

File details

Details for the file pytest_cairo-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pytest_cairo-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.8

File hashes

Hashes for pytest_cairo-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 afe0740a6a6cfe040d8514538172300c27b5621984056275a991d6159d2e8998
MD5 bdab936b802f253fd3026771628b667d
BLAKE2b-256 bb94ea59d7a0f94ef2313cdf69655fb94afb3c8889942ab26ea373894b187b20

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