Mock subprocess.Popen for testing JSON-RPC client
| 17 | |
| 18 | |
| 19 | class MockProcess: |
| 20 | """Mock subprocess.Popen for testing JSON-RPC client""" |
| 21 | |
| 22 | def __init__(self): |
| 23 | self.stdin = io.BytesIO() |
| 24 | self.stdout = None # Will be set per test |
| 25 | self.returncode = None |
| 26 | |
| 27 | def poll(self): |
| 28 | return self.returncode |
| 29 | |
| 30 | |
| 31 | class ShortReadStream: |
no outgoing calls
searching dependent graphs…