Add paths to sys.path
Project description
pytest-path
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 seperated 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.
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.0.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for pytest_srcpaths-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5a2651081d4ab8493a2796fc02883b09da544b82c6da05fe2df1feec87e0467 |
|
MD5 | ff9c8f458aded4ce2f79670143be630a |
|
BLAKE2b-256 | d340bae176afcdb85ac49f803f1a7c8aa546f239612c232863a07396c0ab4af5 |