Skip to main content

vedro-jj

Codecov PyPI PyPI - Downloads Python Version

Vedro + jj

Installation

Quick

For a quick installation, you can use a plugin manager as follows:

$ vedro plugin install vedro-jj

Manual

To install manually, follow these steps:

  1. Install the package using pip:
$ pip3 install vedro-jj
  1. Next, activate the plugin in your vedro.cfg.py configuration file:
# ./vedro.cfg.py
import vedro
import vedro_jj

class Config(vedro.Config):

    class Plugins(vedro.Config.Plugins):

        class VedroJJ(vedro_jj.VedroJJ):
            enabled = True

Usage

import httpx
import jj
import vedro
from jj.mock import mocked

class Scenario(vedro.Scenario):
    subject = "get users"

    def given(self):
        self.mock_matcher = jj.match("GET", "/users")
        self.mock_response = jj.Response(json=[])

    def when(self):
        with mocked(self.mock_matcher, self.mock_response):
            self.response = httpx.get("http://localhost:8080/users")

    def then(self):
        assert self.response.status_code == 200
        assert self.response.json() == []
$ vedro run -vv

Metadata

Release files for vedro-jj 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vedro-jj 0.2.0
File Size Uploaded Provenance
vedro-jj-0.2.0.tar.gz 9.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for vedro-jj 0.2.0
File Interpreter ABI Platform
vedro_jj-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.7 kB

Release files / vedro-jj-0.2.0.tar.gz

Download URL vedro-jj-0.2.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
171a48d60ef4ded52ef9683022cd99b1c6f1d94c8d3a19e6e45df3392d478169
BLAKE2b-256 checksum
How to use checksums
c81c21624283a040021e22041bf0f5141cc8e0ee744ae1922f68700779a850dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / vedro_jj-0.2.0-py3-none-any.whl

Download URL vedro_jj-0.2.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e20c92333bf373657c310dfddfaa2e2c56d905e77a557252a037f4fa5acb72e5
BLAKE2b-256 checksum
How to use checksums
9bf6612ac8754c35215f8271245b904ee11e4f147014bf5ca5da291d9faf02c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Security for vedro-jj 0.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page