(self)
| 103 | |
| 104 | class TestModelIndexCompleter(unittest.TestCase): |
| 105 | def setUp(self): |
| 106 | self.index = InMemoryIndex( |
| 107 | { |
| 108 | 'command_names': { |
| 109 | '': [('aws', None)], |
| 110 | 'aws': [ |
| 111 | ('ec2', 'Amazon Elastic Compute Cloud'), |
| 112 | ('ecs', 'Amazon EC2 Container Registry'), |
| 113 | ('s3', 'Amazon Simple Storage Service'), |
| 114 | ('s3api', 'Amazon Simple Storage Service'), |
| 115 | ], |
| 116 | 'aws.ec2': [('describe-instances', None)], |
| 117 | 'aws.s3api': [('get-object', None)], |
| 118 | }, |
| 119 | 'arg_names': { |
| 120 | '': { |
| 121 | 'aws': ['region', 'endpoint-url'], |
| 122 | }, |
| 123 | 'aws.ec2': { |
| 124 | 'describe-instances': [ |
| 125 | 'instance-ids', |
| 126 | 'reserve', |
| 127 | 'positional', |
| 128 | ], |
| 129 | }, |
| 130 | 'aws.s3api': { |
| 131 | 'get-object': ['outfile', 'bucket', 'key'], |
| 132 | }, |
| 133 | }, |
| 134 | 'arg_data': { |
| 135 | '': { |
| 136 | 'aws': { |
| 137 | 'endpoint-url': ( |
| 138 | 'endpoint-url', |
| 139 | 'string', |
| 140 | 'aws', |
| 141 | '', |
| 142 | None, |
| 143 | False, |
| 144 | False, |
| 145 | ), |
| 146 | 'region': ( |
| 147 | 'region', |
| 148 | 'string', |
| 149 | 'aws', |
| 150 | '', |
| 151 | None, |
| 152 | False, |
| 153 | False, |
| 154 | ), |
| 155 | } |
| 156 | }, |
| 157 | 'aws.ec2': { |
| 158 | 'describe-instances': { |
| 159 | 'instance-ids': ( |
| 160 | 'instance-ids', |
| 161 | 'string', |
| 162 | 'describe-instances', |
nothing calls this directly
no test coverage detected