pytest-platform-markers
Markers for pytest to skip tests on specific platforms
Features
This plugin adds the following markers to pytest:
posix: Skipped except on a POSIX os (Linux/OS X, os.name != 'posix')
windows: Skipped except on Windows (os.name != 'nt')
linux: Skipped except on Linux (sys.platform.startswith('linux'))
osx: Skipped except on OS X (sys.platform != 'darwin')
not_osx: Skipped on OS X (sys.platform == 'darwin')
not_frozen: Skipped when frozen (getattr(sys, 'frozen', False))
frozen: Skipped except when frozen (not getattr(sys, 'frozen', False))
ci: Skipped except on CI systems ('CI' not in os.environ)
not_ci: Skipped on CI systems ('CI' in os.environ)
Installation
You can install “pytest-platform-markers” via pip from PyPI:
$ pip install pytest-platform-markers
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
Changes
v1.0.0
Added support for pytest >= 4.0
Added support Python 3.6 and 3.7
Dropped support for pytest < 3.6
Dropped support for Python 3.3 and 3.4
v0.1.0
Initial release
License
Distributed under the terms of the MIT license, “pytest-platform-markers” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Metadata
Release files for pytest-platform-markers 1.0.0
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-platform-markers-1.0.0.tar.gz | 3.1 kB | Without provenance | Details for pytest-platform-markers-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_platform_markers-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_platform_markers-1.0.0-py3-none-any.whl |
Total release size: 7.3 kB
Release files / pytest-platform-markers-1.0.0.tar.gz
| Download URL | pytest-platform-markers-1.0.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07ea92669114ba8083b6653995b5a9ab14d57ca16307fd2af22d6f7d295160e4
|
|
BLAKE2b-256 checksum How to use checksums |
b3e7174a22a8cb4cf4b64456cd799f472bb90206f1ce8d537edbc1d9659689a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
|
Release files / pytest_platform_markers-1.0.0-py3-none-any.whl
| Download URL | pytest_platform_markers-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b05cb0bcd51a7cd0375bfbeeb3eaeb01fc85665e45b21fc9494a8a19137f4d32
|
|
BLAKE2b-256 checksum How to use checksums |
c5d12ef73ee137add043df444fddf1c851b8ca70ab9c7b7f18e18c4c244fec6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
|
Security for pytest-platform-markers 1.0.0
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.