{"library":"pytest-pythonpath","title":"Pytest Pythonpath Plugin","description":"pytest-pythonpath is a pytest plugin designed to extend the `PYTHONPATH` from `pytest.ini` configuration files or command-line arguments before tests run. It provides functionality to add arbitrary directories to `sys.path` for module discovery during test execution. This plugin reached version 0.7.4 in February 2022 and is now largely considered obsolete since `pytest` version 7.0.0 introduced equivalent built-in functionality.","language":"python","status":"maintenance","last_verified":"Thu Apr 16","install":{"commands":["pip install pytest-pythonpath"],"cli":null},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"[pytest]\npython_paths = src my_project/libs\nsite_dirs = other_packages","lang":"ini","description":"To configure `pytest-pythonpath`, create or modify your `pytest.ini` file. The `python_paths` option adds directories to the beginning of `sys.path`. The `site_dirs` option processes directories similar to `.pth` files, using `addsitedir`, though these paths might not be at the very front of `sys.path`. Paths are relative to the project's root directory.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}