(self, command, text=True)
| 33 | def test_run_and_monitor_handles_missing_command(monkeypatch): |
| 34 | class FakePopen: |
| 35 | def __init__(self, command, text=True): |
| 36 | raise FileNotFoundError |
| 37 | |
| 38 | monkeypatch.setattr(monitor_module, "EmissionsTracker", FakeTracker) |
| 39 | monkeypatch.setattr(monitor_module.subprocess, "Popen", FakePopen) |