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

pytest-integration-mark

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pytest-integration-mark

Automatic integration test marking and excluding plugin for pytest

  • 0.2.0
  • PyPI
  • Socket score

Maintainers
1

Formatter PyPI version PyPI - Python Version

Description

Provides a pytest marker integration for integration tests. This marker automatically applies to all tests in a specified integration test folder. Integration tests will not run by default, which is useful for cases where an external dependency needs to be set up first (such as a database service).

Installation

This is a pure python package, so it can be installed with pip install pytest-integration-mark or any other dependency manager.

Usage

After installation:

Running pytest as usual:

  • Tests marked with @pytest.mark.integration will be skipped
  • Tests in ./tests/integration/... will be skipped

Running pytest --with-integration:

  • Tests marked with @pytest.mark.integration will run
  • Tests in ./tests/integration/... will run

Running pytest --with-integration --integration-tests-folder integration:

  • Tests marked with @pytest.mark.integration will run
  • Tests in ./integration/... will run

Development

This library uses the poetry package manager, which has to be installed before installing other dependencies. Afterwards, run poetry install to create a virtualenv and install all dependencies. To then activate that environment, use poetry shell. To run a command in the environment without activating it, use poetry run <command>.

Black is used (and enforced via workflows) to format all code. Poetry will install it automatically, but running it is up to the user. To format the entire project, run black . inside the virtualenv.

Contributing

This project uses the Apache 2.0 license and is maintained by the data science team @ Barbora. All contribution are welcome in the form of PRs or raised issues.

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