File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ def submit_pandas_labels(
63
63
- 'PANDAS_PARAM_TRACKING_TASK': Indicates that the unimplemented feature is a
64
64
parameter of a method.
65
65
"""
66
+ if method_name .startswith ("_" ) and not method_name .startswith ("__" ):
67
+ return
68
+
66
69
labels_dict = {
67
70
"task" : task ,
68
71
"class_name" : class_name .lower (),
Original file line number Diff line number Diff line change @@ -155,3 +155,13 @@ def test_submit_pandas_labels_without_valid_params_for_param_logging(mock_bqclie
155
155
156
156
# For param tracking task without kwargs, we won't submit labels
157
157
mock_bqclient .query .assert_not_called ()
158
+
159
+
160
+ def test_submit_pandas_labels_with_internal_method (mock_bqclient ):
161
+ log_adapter .submit_pandas_labels (
162
+ mock_bqclient ,
163
+ "Series" ,
164
+ "_repr_latex_" ,
165
+ task = log_adapter .PANDAS_API_TRACKING_TASK ,
166
+ )
167
+ mock_bqclient .query .assert_not_called ()
You can’t perform that action at this time.
0 commit comments