Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pytest-platform-markers

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pytest-platform-markers

Markers for pytest to skip tests on specific platforms

  • 1.0.0
  • PyPI
  • Socket score

Maintainers
1

pytest-platform-markers

.. image:: https://travis-ci.org/The-Compiler/pytest-platform-markers.svg?branch=master :target: https://travis-ci.org/The-Compiler/pytest-platform-markers :alt: See Build Status on Travis CI

.. image:: https://ci.appveyor.com/api/projects/status/github/The-Compiler/pytest-platform-markers?branch=master :target: https://ci.appveyor.com/project/The-Compiler/pytest-platform-markers/branch/master :alt: 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.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _@hackebrot: https://github.com/hackebrot .. _MIT: http://opensource.org/licenses/MIT .. _BSD-3: http://opensource.org/licenses/BSD-3-Clause .. _GNU GPL v3.0: http://www.gnu.org/licenses/gpl-3.0.txt .. _Apache Software License 2.0: http://www.apache.org/licenses/LICENSE-2.0 .. _cookiecutter-pytest-plugin: https://github.com/pytest-dev/cookiecutter-pytest-plugin .. _file an issue: https://github.com/The-Compiler/pytest-platform-markers/issues .. _pytest: https://github.com/pytest-dev/pytest .. _tox: https://tox.readthedocs.org/en/latest/ .. _pip: https://pypi.python.org/pypi/pip/ .. _PyPI: https://pypi.python.org/pypi .. _pytest-platform-markers: https://pypi.python.org/pypi/pytest-platform-markers

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc