()
| 74 | side_effect_file = os.path.join(str(tmpdir), "side.effect") |
| 75 | |
| 76 | def observe_side_effect(): |
| 77 | # type: () -> Dict[str, int] |
| 78 | with open(side_effect_file) as fp: |
| 79 | return cast("Dict[str, int]", json.load(fp)) |
| 80 | |
| 81 | assert ( |
| 82 | {"exit_code": 42} |