pytest-order 
This is a fork of pytest-ordering.
That project is not maintained anymore, and there are several helpful PRs
waiting for merge. Therefore I decided to create this fork that tries to
combine the original code with most of the provided PRs.
My hope is that the original project will be moved to the pytest
organization as outlined in
this issue. When this
happens, this fork will be obsolete.
pytest-order is a pytest plugin to run your tests in a specific order.
Have you ever wanted to easily run one of your tests before any others run? Or run some tests last? Or run this one test before that other test? Or make sure that this group of tests runs after this other group of tests?
Now you can.
Install with:
pip install pytest-order
This defines some pytest markers that you can use in your code.
For example, this:
import pytest
@pytest.mark.run(order=2)
def test_foo():
assert True
@pytest.mark.run(order=1)
def test_bar():
assert True
Yields this output:
$ py.test test_foo.py -vv
============================= test session starts ==============================
platform darwin -- Python 2.7.5 -- py-1.4.20 -- pytest-2.5.2 -- env/bin/python
plugins: order
collected 2 items
test_foo.py:7: test_bar PASSED
test_foo.py:3: test_foo PASSED
=========================== 2 passed in 0.01 seconds ===========================
More information can be found in the documentation:
- for the latest release
- for the current master
Metadata
Release files for pytest-order 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-order-0.7.1.tar.gz | 5.9 kB | Without provenance | Details for pytest-order-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_order-0.7.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pytest_order-0.7.1-py2.py3-none-any.whl |
Total release size: 12.1 kB
Release files / pytest-order-0.7.1.tar.gz
| Download URL | pytest-order-0.7.1.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ff762bdeb8c81b9a6317e52c55f34911195a31c4e13141b5c669fdd1d5e5beb
|
|
BLAKE2b-256 checksum How to use checksums |
d34738ca3bfdf5befdeac6ec9cf02087b89f916f9b9fd3999d667689ac911e49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.46.1 CPython/3.7.1
|
Release files / pytest_order-0.7.1-py2.py3-none-any.whl
| Download URL | pytest_order-0.7.1-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7c40ab80c17efe4fbcde44845c72d807c2dd56ca5b87bd7a0d3b53cec96e4475
|
|
BLAKE2b-256 checksum How to use checksums |
41a9ded1f75e6b6e8aa8019b10bb3f0d99a79add4ccce9325b8ad8ad81b29f74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.46.1 CPython/3.7.1
|
Security for pytest-order 0.7.1
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.