File tree Expand file tree Collapse file tree 5 files changed +21
-6
lines changed
Expand file tree Collapse file tree 5 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 22 pull_request :
33 branches :
44 - main
5+ push :
6+ branches :
7+ - main
58name : docs
69jobs :
710 docs :
Original file line number Diff line number Diff line change 22 pull_request :
33 branches :
44 - main
5+ push :
6+ branches :
7+ - main
58name : lint
69jobs :
710 lint :
Original file line number Diff line number Diff line change 22 pull_request :
33 branches :
44 - main
5+ push :
6+ branches :
7+ - main
58name : mypy
69jobs :
710 mypy :
Original file line number Diff line number Diff line change 22 pull_request :
33 branches :
44 - main
5+ push :
6+ branches :
7+ - main
58name : unittest
69jobs :
710 unit :
Original file line number Diff line number Diff line change @@ -131,9 +131,10 @@ def test_create_job_configs_labels_length_limit_met_and_labels_is_none():
131131 df .head ()
132132 api_methods = log_adapter ._api_methods
133133
134- labels = io_bq .create_job_configs_labels (
135- job_configs_labels = None , api_methods = api_methods
136- )
134+ with bpd .option_context ("compute.extra_query_labels" , {}):
135+ labels = io_bq .create_job_configs_labels (
136+ job_configs_labels = None , api_methods = api_methods
137+ )
137138 assert labels is not None
138139 assert len (labels ) == log_adapter .MAX_LABELS_COUNT
139140 assert "dataframe-head" in labels .values ()
@@ -158,9 +159,11 @@ def test_create_job_configs_labels_length_limit_met():
158159 df .max ()
159160 api_methods = log_adapter ._api_methods
160161
161- labels = io_bq .create_job_configs_labels (
162- job_configs_labels = cur_labels , api_methods = api_methods
163- )
162+ with bpd .option_context ("compute.extra_query_labels" , {}):
163+ labels = io_bq .create_job_configs_labels (
164+ job_configs_labels = cur_labels , api_methods = api_methods
165+ )
166+
164167 assert labels is not None
165168 assert len (labels ) == 56
166169 assert "dataframe-max" in labels .values ()
You can’t perform that action at this time.
0 commit comments