PATH: //proc/self/root/opt/cloudlinux/venv/lib64/python3.11/site-packages/_pytest
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 _argcomplete.py
↓
X
📁 _code/
X
📁 _io/
X
📁 _py/
X
📄 _version.py
↓
X
📁 assertion/
X
📄 cacheprovider.py
↓
X
📄 capture.py
↓
X
📄 compat.py
↓
X
📁 config/
X
📄 debugging.py
↓
X
📄 deprecated.py
↓
X
📄 doctest.py
↓
X
📄 faulthandler.py
↓
X
📄 fixtures.py
↓
X
📄 freeze_support.py
↓
X
📄 helpconfig.py
↓
X
📄 hookspec.py
↓
X
📄 junitxml.py
↓
X
📄 legacypath.py
↓
X
📄 logging.py
↓
X
📄 main.py
↓
X
📁 mark/
X
📄 monkeypatch.py
↓
X
📄 nodes.py
↓
X
📄 nose.py
↓
X
📄 outcomes.py
↓
X
📄 pastebin.py
↓
X
📄 pathlib.py
↓
X
📄 py.typed
↓
X
📄 pytester.py
↓
X
📄 pytester_assertions.py
↓
X
📄 python.py
↓
X
📄 python_api.py
↓
X
📄 python_path.py
↓
X
📄 recwarn.py
↓
X
📄 reports.py
↓
X
📄 runner.py
↓
X
📄 scope.py
↓
X
📄 setuponly.py
↓
X
📄 setupplan.py
↓
X
📄 skipping.py
↓
X
📄 stash.py
↓
X
📄 stepwise.py
↓
X
📄 terminal.py
↓
X
📄 threadexception.py
↓
X
📄 timing.py
↓
X
📄 tmpdir.py
↓
X
📄 unittest.py
↓
X
📄 unraisableexception.py
↓
X
📄 warning_types.py
↓
X
📄 warnings.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: python_path.py
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)
SIMPAN PERUBAHAN