pytest-doctest-import 0.1.1

Creator: bradpython12

Last updated:

Add to Cart

Description:

pytestdoctestimport 0.1.1

A simple pytest plugin to import names and add them to the doctest namespace.

Installing
Install this package with
pip install pytest-doctest-import


Usage
Simply pass the import names to --doctest-import when instantiating pytest.
To get the equivalent of import package.module use
pytest --doctest-modules --doctest-import "package.module"
To get the equivalent of from package import * use
pytest --doctest-modules --doctest-import "*<package"
To get the equivalent of from package import module as mymodule use
pytest --doctest-modules --doctest-import "module@mymodule<package"


License
This project is licensed under the MIT License.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.