D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
pytest_subprocess
/
Filename :
fixtures.py
back
Copy
from typing import Generator import pytest from . import FakeProcess @pytest.fixture def fp() -> Generator[FakeProcess, None, None]: """Fake subprocess calls.""" with FakeProcess() as process: yield process fake_process = fp