Pytest marker @pytest.mark.pysteptest for sequential tests in a class
Project description
pysteptest
After installing via pip, use the @pytest.mark.pysteptest marker on a class
for example for system tests
that need to happen in a specific order one after another.
When one test fails, then do not run the following ones.
@pytest.mark.pysteptest
class TestTodos:
def test_it_creates_todo(self):
# ...
def test_it_reads_todo(self):
# ...
def test_it_deletes_todo(self):
# ...
This incremental marker is created by changing the code of https://github.com/pytest-dev/pytest/blob/24e84f08f43216f95620135305cbebe9f646e433/doc/en/example/simple.rst#incremental-testing---test-steps. See pytest repo's MIT license, LICENSE_OF_PYTEST file, included in the repository of this pysteptest project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file realerikrani_pysteptest-1.0.0.tar.gz.
File metadata
- Download URL: realerikrani_pysteptest-1.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcb02522400663750651abc05ba06181080a7ebdadcb2efb34844314c316e41a
|
|
| MD5 |
035b07ea4be77f5bd8942e1dc3997b28
|
|
| BLAKE2b-256 |
ffcbc75ec1e17325316d2e4757c132384a20696f7c1fd2870c0668259b305fa3
|
File details
Details for the file realerikrani_pysteptest-1.0.0-py3-none-any.whl.
File metadata
- Download URL: realerikrani_pysteptest-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a06a709c342c82aa0fee56e3341f65060116acbf8bfda0054a3c008b5b89fa94
|
|
| MD5 |
c26b8f1d8964496b83e0ebd8e01a38d7
|
|
| BLAKE2b-256 |
42df3aa4bda05b4edcc6fbde8366ce7939f31a926eae691a00bb4d9db659cd77
|