Metadata-Version: 2.1
Name: pytest_srcpaths
Version: 1.0.0
Summary: Add paths to sys.path
Home-page: https://github.com/okken/pytest-srcpaths
License: UNKNOWN
Author: Brian Okken
Author-email: brian+pypi@pythontest.com
Description-Content-Type: text/markdown
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: pytest>=5.0.0

# 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](https://pypi.org/project/pytest-pythonpath/).

Implementation and scope are a bit different.

