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"})
def test_add_parameter_warn(self): request = AsyncJobRequest(service="test") request.job_id = "test" with pytest.warns(UserWarning): request.add_parameter(value="foo")