plugins – Testsuite plugins — pyudev 0.24.0 documentation

# `plugins` – Testsuite plugins

Plugins to support the pyudev testsuite.

The following plugins are provided and enabled:

## `pytest` namespace

The plugin adds the following functions to the `pytest` namespace:

### `fake_monitor` – A fake `Monitor`

## Funcargs

The plugin provides the following funcargs:

### `mock_libudev` – Mock calls to libudev

### `travis` – Support for Travis CI

## Test markers

pytest.mark.not_on_travis

  Do not run the decorated test on Travis CI:

      @pytest.mark.not_on_travis
      def test_foo():
          assert True

  `test_foo` will not be run on Travis CI.

## `pytest` namespace

The plugin adds the following functions to the `pytest` namespace: