def __init__( self, context: DataContext, expectation_suite_name: str, profiler_name: str, batch_request: Union[str, Dict[str, Union[str, int, Dict[str, Any]]]], ) -> None: super().__init__(context=context) if batch_request is None: batch_request = {} deep_filter_properties_iterable( properties=batch_request, inplace=True, ) batch_request = standardize_batch_request_display_ordering( batch_request=batch_request ) self._batch_request = batch_request self._validator = context.get_validator( batch_request=BatchRequest(**batch_request), expectation_suite_name=expectation_suite_name, ) self._profiler_name = profiler_name self._expectation_suite_name = self._validator.expectation_suite_name
def __init__( self, context: DataContext, expectation_suite_name: str, batch_request: Union[str, Dict[str, Union[str, int, Dict[str, Any]]]], ): super().__init__(context=context) if batch_request is None: batch_request = {} self.batch_request = batch_request self.validator = context.get_validator( batch_request=BatchRequest(**batch_request), expectation_suite_name=expectation_suite_name, ) self.expectation_suite_name = self.validator.expectation_suite_name