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