Replace plot-schema.json with web copy.
(url)
| 117 | |
| 118 | |
| 119 | def overwrite_schema(url): |
| 120 | """Replace plot-schema.json with web copy.""" |
| 121 | |
| 122 | req = requests.get(url) |
| 123 | assert req.status_code == 200 |
| 124 | path = os.path.join(PROJECT_ROOT, "codegen", "resources", "plot-schema.json") |
| 125 | with open(path, "wb") as f: |
| 126 | f.write(req.content) |
| 127 | |
| 128 | |
| 129 | def overwrite_bundle_local(uri): |
no test coverage detected