def METHOD_NAME(self):
    spec = {
        "documentationUrl": "https://airbyte.com/#json",
        "connectionSpecification": self.CONNECTION_SPECIFICATION,
    }
    json_path = os.path.join(SPEC_ROOT, "spec.json")
    with open(json_path, "w") as f:
        f.write(json.dumps(spec))
    yield
    os.remove(json_path)