pytest-doctest-import
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.
Metadata
Release files for pytest-doctest-import 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-doctest-import-0.1.0.tar.gz | 4.2 kB | Without provenance | Details for pytest-doctest-import-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_doctest_import-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_doctest_import-0.1.0-py3-none-any.whl |
Total release size: 8.5 kB
Release files / pytest-doctest-import-0.1.0.tar.gz
| Download URL | pytest-doctest-import-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7f32045ba7c1f09be84d69f1946e61d8e73fa525df834ad091a226fd308ac20
|
|
BLAKE2b-256 checksum How to use checksums |
58a3f671d93f5db3c96ad12483dca8bfc049ed64582340eb372e788cd2106cbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|
Release files / pytest_doctest_import-0.1.0-py3-none-any.whl
| Download URL | pytest_doctest_import-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b840c12c84cd557fe0bd6ea24817f476f7f610209afeae1c7ff34f24c9822e0
|
|
BLAKE2b-256 checksum How to use checksums |
70027aff0a4c93fd80499742382346a44d85fe77482226a1f859bde0cc09ef24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|
Security for pytest-doctest-import 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.