Esempio n. 1
0
 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, {})
Esempio n. 2
0
 def test_modify_request(self, request_builder):
     types.FieldMap().modify_request(request_builder, {"hello": "world"})
     assert request_builder.info["data"] == {"hello": "world"}