Markers for pytest to skip tests on specific platforms
Project description
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.
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.
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
Hashes for pytest-platform-markers-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa8ed871905cfb5e449b7c038ce5c0e112ca58639851f6057866845edc1ea0fe |
|
MD5 | e8bb5ba5add8af5a7b0ce78610993bc1 |
|
BLAKE2b-256 | b1f0b419dcecd03a25ba92e6d4be2ee656bca7da9281dc84b21b5f00d43baecf |