MCPcopy Index your code
hub / github.com/aws/aws-cli / setUp

Method setUp

tests/unit/test_alias.py:253–267  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

251
252class TestAliasCommandInjector(unittest.TestCase):
253 def setUp(self):
254 self.files = FileCreator()
255 self.alias_file = self.files.create_file('alias', '[toplevel]\n')
256 self.alias_loader = AliasLoader(self.alias_file)
257 self.session = mock.Mock(spec=Session)
258 self.alias_cmd_injector = AliasCommandInjector(
259 self.session, self.alias_loader
260 )
261 self.command_table = {}
262 self.parser = MainArgParser(
263 command_table=self.command_table,
264 version_string='version',
265 description='description',
266 argument_table={},
267 )
268
269 def tearDown(self):
270 self.files.remove_all()

Callers

nothing calls this directly

Calls 5

FileCreatorClass · 0.90
AliasLoaderClass · 0.90
MainArgParserClass · 0.90
create_fileMethod · 0.45

Tested by

no test coverage detected