def test_modify_request_failure(self, request_builder): request_builder.info["data"] = object() with pytest.raises(arguments.FieldMap.FieldMapUpdateFailed): arguments.FieldMap().modify_request(request_builder, {})
def test_modify_request(self, request_builder): arguments.FieldMap().modify_request(request_builder, {"hello": "world"}) assert request_builder.info["data"] == {"hello": "world"}