Add paths to sys.path
Project description
pytest-srcpaths
Add paths to sys.path
.
A pytest plugin to help pytest find the code you want to test.
Installation
Install with pip:
pip install pytest-srcpaths
Usage
Add a line in your pytest.ini file with a key of srcpaths
.
It should contain a space-separated list of paths.
[pytest]
srcpaths = src lib
Paths are relative to the directory that pytest.ini is in.
You can include the top level directory with a dot.
[pytest]
srcpaths = .
Similar project
This plugin was inspired by pytest-pythonpath whose implementation and scope are a bit different.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-srcpaths-1.1.0.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for pytest_srcpaths-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef50f6e17b7d7530fe291e748444f1befb66c7770b3795dc7e304d4fddc3e707 |
|
MD5 | 8574c244d5dcca3913b14a9430e064bb |
|
BLAKE2b-256 | 4e024b8e487c9aaf5470737581882b8dd9e5ba5271d4d30ff876e20a56cceb9d |