Skip to main content

No project description provided

Project description

Vedro

Codecov PyPI PyPI - Downloads Python Version

(!) Work in progress, breaking changes are possible until v2.0 is released

Installation

pip3 install vedro

Usage

# ./scenarios/decode_base64_encoded_string.py
from aiohttp import ClientSession
import vedro


class Scenario(vedro.Scenario):
    subject = "decode base64 encoded string"

    def given(self):
        self.encoded = "YmFuYW5h"

    async def when(self):
        async with ClientSession() as session:
            self.response = await session.get(f"https://httpbin.org/base64/{self.encoded}")

    async def then(self):
        assert (await self.response.text()) == "banana"
python3 -c "import vedro; vedro.run()"

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

vedro-1.0.2.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

vedro-1.0.2-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file vedro-1.0.2.tar.gz.

File metadata

  • Download URL: vedro-1.0.2.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for vedro-1.0.2.tar.gz
Algorithm Hash digest
SHA256 885f587845c5d6924f4d12b39dca9e1e786d25b58d95eb540957b6359f837aab
MD5 4767038d0f5a24fffa2e65f20ed3f6c1
BLAKE2b-256 174d969ebb2347f3b9ee1329505c8b71b576db8ee11c6f2d2874410503495467

See more details on using hashes here.

File details

Details for the file vedro-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: vedro-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for vedro-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3796fb23b9933aaa9dd44381506916db65a0cfde319975bcb7393c7cae310440
MD5 da23d225a30bb5cfaa260b95123a5d57
BLAKE2b-256 6cbfbc8a634470858db6d06388cc61f0b71c126478c73ac5e28912a661867a2a

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