Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pytest-expecter

A pytest plugin for garybernhardt/expecter that hides the internal stacktrace.

Build Status
PyPI Version

Overview

This lets you write tests (optionally using ropez/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

pip install pytest-expecter

Revision History

1.2 (unreleased)

  • Added icontains method to check for containment ignoring case.

1.1 (2018/02/21)

  • Added expect fixture to use directly in tests.

1.0 (2017/12/03)

  • Initial stable release.

0.2.2.post7 (2017/12/02)

  • Added automatic conversion from OrderedDict to dict on Python 3.6 to create readable diffs.

Metadata

Release files for pytest-expecter 1.2a1

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 1.2a1
File Size Uploaded Provenance Actions
pytest-expecter-1.2a1.tar.gz 8.8 kB Without provenance Details for pytest-expecter-1.2a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-expecter 1.2a1
File Interpreter ABI Platform Actions
pytest_expecter-1.2a1-py2-none-any.whl Python 2 none any Details for pytest_expecter-1.2a1-py2-none-any.whl

Total release size: 20.8 kB

Release files / pytest-expecter-1.2a1.tar.gz

Download URL pytest-expecter-1.2a1.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d62a236e2959a943f7ada82701d44c7fc7b5b0c31866766d14cceda0a4a1c2bf
BLAKE2b-256 checksum
How to use checksums
18e9d7a6a6fdd56b88a8d4220c480a4e62afdf52850295ddb8abd41a8f213e95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pytest_expecter-1.2a1-py2-none-any.whl

Download URL pytest_expecter-1.2a1-py2-none-any.whl
Size 12.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
ab3376d592fc19e78349da4bbf8a3bb0ee2f728ac603884767179717538dffb7
BLAKE2b-256 checksum
How to use checksums
ce826af14b01e2c7f9031999dce23650262f54c51031aa0e6fa1855d26666a6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pytest-expecter 1.2a1

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
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