示例#1
0
 def test_add_output_metadata_warn(self):
     request = AsyncJobRequest(service="test")
     request.job_id = "test"
     with pytest.warns(UserWarning):
         request.add_output_metadata({"foo": "bar"})
示例#2
0
 def test_add_parameter_warn(self):
     request = AsyncJobRequest(service="test")
     request.job_id = "test"
     with pytest.warns(UserWarning):
         request.add_parameter(value="foo")