| 193 | |
| 194 | @dataclasses.dataclass(slots=True, frozen=True) |
| 195 | class WorkerRunTests(RunTests): |
| 196 | json_file: JsonFile |
| 197 | |
| 198 | def as_json(self) -> StrJSON: |
| 199 | return json.dumps(self, cls=_EncodeRunTests) |
| 200 | |
| 201 | @staticmethod |
| 202 | def from_json(worker_json: StrJSON) -> 'WorkerRunTests': |
| 203 | return json.loads(worker_json, object_hook=_decode_runtests) |
| 204 | |
| 205 | |
| 206 | class _EncodeRunTests(json.JSONEncoder): |
no outgoing calls