PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
_pytest
import sys import pytest from pytest import Config from pytest import Parser def pytest_addoption(parser: Parser) -> None: parser.addini("pythonpath", type="paths", help="Add paths to sys.path", default=[]) @pytest.hookimpl(tryfirst=True) def pytest_load_initial_conftests(early_config: Config) -> None: # `pythonpath = a b` will set `sys.path` to `[a, b, x, y, z, ...]` for path in reversed(early_config.getini("pythonpath")): sys.path.insert(0, str(path)) @pytest.hookimpl(trylast=True) def pytest_unconfigure(config: Config) -> None: for path in config.getini("pythonpath"): path_str = str(path) if path_str in sys.path: sys.path.remove(path_str)
[-] setuponly.py
[edit]
[-] pytester_assertions.py
[edit]
[-] skipping.py
[edit]
[-] cacheprovider.py
[edit]
[-] junitxml.py
[edit]
[-] fixtures.py
[edit]
[-] deprecated.py
[edit]
[-] helpconfig.py
[edit]
[-] python_path.py
[edit]
[-] capture.py
[edit]
[-] terminal.py
[edit]
[-] pastebin.py
[edit]
[+]
config
[-] _argcomplete.py
[edit]
[-] main.py
[edit]
[-] hookspec.py
[edit]
[+]
_io
[-] setupplan.py
[edit]
[-] tmpdir.py
[edit]
[-] logging.py
[edit]
[+]
__pycache__
[-] runner.py
[edit]
[-] threadexception.py
[edit]
[-] reports.py
[edit]
[-] unraisableexception.py
[edit]
[+]
mark
[-] stepwise.py
[edit]
[+]
_py
[-] timing.py
[edit]
[-] monkeypatch.py
[edit]
[-] faulthandler.py
[edit]
[-] warning_types.py
[edit]
[-] nodes.py
[edit]
[-] scope.py
[edit]
[-] nose.py
[edit]
[+]
_code
[-] _version.py
[edit]
[-] pathlib.py
[edit]
[-] pytester.py
[edit]
[-] recwarn.py
[edit]
[-] outcomes.py
[edit]
[-] legacypath.py
[edit]
[-] __init__.py
[edit]
[-] compat.py
[edit]
[-] freeze_support.py
[edit]
[-] stash.py
[edit]
[+]
assertion
[-] debugging.py
[edit]
[-] python.py
[edit]
[+]
..
[-] warnings.py
[edit]
[-] py.typed
[edit]
[-] doctest.py
[edit]
[-] python_api.py
[edit]
[-] unittest.py
[edit]