Retrieves a validation reference. Raises: ValidationReferenceNotFoundException: The validation reference could not be found.
(
self, name: str, allow_cache: bool = False
)
| 4124 | return None |
| 4125 | |
| 4126 | def get_validation_reference( |
| 4127 | self, name: str, allow_cache: bool = False |
| 4128 | ) -> ValidationReference: |
| 4129 | """ |
| 4130 | Retrieves a validation reference. |
| 4131 | |
| 4132 | Raises: |
| 4133 | ValidationReferenceNotFoundException: The validation reference could not be found. |
| 4134 | """ |
| 4135 | ref = self.registry.get_validation_reference( |
| 4136 | name, project=self.project, allow_cache=allow_cache |
| 4137 | ) |
| 4138 | ref._dataset = self.get_saved_dataset(ref.dataset_name) |
| 4139 | return ref |
| 4140 | |
| 4141 | def list_validation_references( |
| 4142 | self, allow_cache: bool = False, tags: Optional[dict[str, str]] = None |
no test coverage detected