MCPcopy Create free account
hub / github.com/mlco2/codecarbon / __init__

Method __init__

tests/cli/test_monitor.py:35–36  ·  view source on GitHub ↗
(self, command, text=True)

Source from the content-addressed store, hash-verified

33def 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)

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected