Skip to main content

Overview

A pytest plugin based on garybernhardt/expecter to write expressive tests.

Build Status Coverage Status PyPI Version PyPI License

Quick Start

With this plugin you can write tests (optionally using pytest-describe) like this:

def describe_foobar():

    def it_can_pass(expect):
        expect(2 + 3) == 5

    def it_can_fail(expect):
        expect(2 + 3) == 6

and get output like this:

============================= FAILURES =============================
___________________ describe_foobar.it_can_fail ____________________

    def it_can_fail(expect):
>       expect(2 + 3) == 6
E       AssertionError: Expected 6 but got 5

test_foobar.py:7: AssertionError
================ 1 failed, 1 passed in 2.67 seconds ================

Installation

Install it directly into an activated virtual environment:

$ pip install pytest-expecter

or add it to your Poetry project:

$ poetry add pytest-expecter

Metadata

Release files for pytest-expecter 2.3

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

Source distribution (sdist)

Source distribution for pytest-expecter 2.3
File Size Uploaded Provenance Actions
pytest-expecter-2.3.tar.gz 6.3 kB Without provenance Details for pytest-expecter-2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-expecter 2.3
File Interpreter ABI Platform Actions
pytest_expecter-2.3-py3-none-any.whl Python 3 none any Details for pytest_expecter-2.3-py3-none-any.whl

Total release size: 13.0 kB

Release files / pytest-expecter-2.3.tar.gz

Download URL pytest-expecter-2.3.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8e6a3e565fbc524e5a4988b664d1b748e0a810b33233880aa5d3d78970351e06
BLAKE2b-256 checksum
How to use checksums
131ea0c9c30e6fefce61604c10b7698133f66c338aff2ce4c11a1e2e01120e39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.0 Darwin/20.6.0

Release files / pytest_expecter-2.3-py3-none-any.whl

Download URL pytest_expecter-2.3-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6336d7f43221500e392014a949fd77ee2c2a84bcae2be7669acdd0d7c89b89e9
BLAKE2b-256 checksum
How to use checksums
39d2986adb008d7e90d9923deaab56e6c71e7fb055d08013b257057c7edf5019
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.0 Darwin/20.6.0

Security for pytest-expecter 2.3

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.

Release history Release notifications | RSS feed

This release

2.3 This release

2 release files No provenance

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