MCPcopy Create free account
hub / github.com/aws/aws-cli / test_shape_overrides

Method test_shape_overrides

tests/unit/botocore/test_model.py:908–922  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

906 self.assertEqual(shape.serialization['name'], 'other')
907
908 def test_shape_overrides(self):
909 shape_map = {
910 "StringType": {
911 "type": "string",
912 "documentation": "Original documentation",
913 }
914 }
915 resolver = model.ShapeResolver(shape_map)
916 shape = resolver.get_shape_by_name('StringType')
917 self.assertEqual(shape.documentation, 'Original documentation')
918
919 shape = resolver.resolve_shape_ref(
920 {'shape': 'StringType', 'documentation': 'override'}
921 )
922 self.assertEqual(shape.documentation, 'override')
923
924 def test_shape_type_structure(self):
925 shapes = {

Callers

nothing calls this directly

Calls 2

get_shape_by_nameMethod · 0.95
resolve_shape_refMethod · 0.95

Tested by

no test coverage detected