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