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