Skip to main content
https://travis-ci.org/ropez/pytest-describe.svg?branch=master

Describe-style plugin for py.test

pytest-describe is a plugin for py.test that allows tests to be written in arbitrary nested describe-blocks, similar to RSpec (Ruby) and Jasmine (JavaScript).

The main inspiration for this was a video by Gary Bernhardt.

Example

def describe_list():

    @pytest.fixture
    def list():
        return []

    def describe_append():

        def adds_to_end_of_list(list):
            list.append('foo')
            list.append('bar')
            assert list == ['foo', 'bar']

    def describe_remove():

        @pytest.fixture
        def list():
            return ['foo', 'bar']

        def removes_item_from_list(list):
            list.remove('foo')
            assert list == ['bar']

Metadata

Release files for pytest-describe 0.8

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-describe 0.8
File Size Uploaded
pytest-describe-0.8.tar.gz 4.9 kB Details

Release files / pytest-describe-0.8.tar.gz

Download URL pytest-describe-0.8.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ea7d4105e623cdd921fde6df904524585506f6e8bfe2aa6dc5036f6b4da60b18
BLAKE2b-256 checksum
How to use checksums
dafbda7aad6735d09d0a9142b8bfd1c29021855c53342c283a522daff48c4803
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

3.2.0

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.0

3 release files

0.12.0

1 release file

0.11.1

1 release file

0.11.0

1 release file

0.10.3

1 release file

0.10.2

1 release file

0.10.1

1 release file

0.10

1 release file

0.9

1 release file

This release

0.8 This release

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

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