Pytest Feature

Adds the pytest testing framework to your project.

Usage

To use the Pytest Feature, make sure your Projectfile contains the following:

from medikit import require

pytest = require('pytest')

The pytest handle is a Config instance, and can be used to customize the feature.

Implementation

class medikit.feature.pytest.PytestFeature(dispatcher)[source]
on_make_generate(event)[source]

Listens to medikit.feature.make.on_generate event (priority: -20)

on_python_generate(event)[source]

Listens to medikit.feature.python.on_generate event (priority: 0)

on_start(event)[source]

Listens to medikit.on_start event (priority: -20)

requires = {'python'}