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