(self, dir)
| 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 | |
| 49 | class PythonTest(object): |