Skip to content

Commit b8adab0

Browse files
committed
Set pythonpath = "./src" on pytest.ini_options
Following conventions recommended on [pytest](https://docs.pytest.org/en/stable/explanation/goodpractices.html), setting the `pytest.ini_options.pythonpath` variable in the pyproject.toml file avoids needed to modify `sys.path` before each testing module begins.
1 parent f74d870 commit b8adab0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ build-backend = "setuptools.build_meta"
6868
log_cli = true
6969
log_cli_level = 'INFO'
7070
testpaths = ["tests"]
71+
pythonpath = "./src"

0 commit comments

Comments
 (0)