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