Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mlco2/codecarbon
/ setUp
Method
setUp
tests/test_lock.py:9–10 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
7
8
class
TestLock(unittest.TestCase):
9
def
setUp(self):
10
self.lock = Lock()
11
12
@patch(
"codecarbon.lock.os.remove"
)
13
@patch(
"codecarbon.lock.open"
, new_callable=mock_open)
Callers
nothing calls this directly
Calls
1
Lock
Class · 0.90
Tested by
no test coverage detected