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

Method setUp

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

Source from the content-addressed store, hash-verified

167
168class TestAliasSubcommandInjector(unittest.TestCase):
169 def setUp(self):
170 self.files = FileCreator()
171 self.alias_file = self.files.create_file('alias', '[command iam]\n')
172 self.alias_loader = AliasLoader(self.alias_file)
173 self.command_table = {}
174 self.injector = AliasSubCommandInjector(self.alias_loader)
175 self.command_object = mock.Mock(spec=CLICommand)
176 self.session = mock.Mock(spec=Session)
177
178 def tearDown(self):
179 self.files.remove_all()

Callers

nothing calls this directly

Calls 4

FileCreatorClass · 0.90
AliasLoaderClass · 0.90
create_fileMethod · 0.45

Tested by

no test coverage detected