Skip to main content

Markers for pytest to skip tests on specific platforms

Project description

See Build Status on Travis CI See Build Status on AppVeyor

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-platform-markers-1.0.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

pytest_platform_markers-1.0.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page