MCPcopy Create free account
hub / github.com/apple/foundationdb / save

Method save

tests/python_tests/__init__.py:40–46  ·  view source on GitHub ↗
(self, dir)

Source from the content-addressed store, hash-verified

38 self.errors.append(error)
39
40 def save(self, dir):
41 file = "pyresult-%d.json" % self.id
42 if dir:
43 file = os.path.join(dir, file)
44
45 with open(file, "w") as f:
46 json.dump({"kpis": self.kpis, "errors": self.errors}, f)
47
48
49class PythonTest(object):

Callers 1

runMethod · 0.45

Calls 3

openFunction · 0.50
joinMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected