Skip to content

Commit

Permalink
add new test to base as experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
chalmerlowe committed Oct 25, 2023
1 parent 037417a commit 4bbb4df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unit/job/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,3 +1228,9 @@ def test_labels_setter(self):
job_config = self._make_one()
job_config.labels = labels
self.assertEqual(job_config._properties["labels"], labels)

def test_job_timeout_ms_raises_valueerror():
# Confirm that attempting to set a non-integer values will raise an Error.
with pytest.raises(ValueError):
job_config = bigquery.QueryJobConfig()
job_config.job_timeout_ms = "WillRaiseError"

0 comments on commit 4bbb4df

Please sign in to comment.