def setUp(self): super(ConfigSchemaTestCase, self).setUp() self.shell = shell.Shell() self._content_schema = yaml.load( self.get_fixture_content('config.schema.yaml')) self._new_config = yaml.load(self.get_fixture_content('cfg_new.yaml'))
def __init__(self, *args, **kwargs): super(TestInquiryBase, self).__init__(*args, **kwargs) self.parser = argparse.ArgumentParser() self.parser.add_argument('-t', '--token', dest='token') self.parser.add_argument('--api-key', dest='api_key') self.shell = shell.Shell()
def __init__(self, *args, **kwargs): super(TestKeyValueBase, self).__init__(*args, **kwargs) self.parser = argparse.ArgumentParser() self.parser.add_argument("-t", "--token", dest="token") self.parser.add_argument("--api-key", dest="api_key") self.shell = shell.Shell()
def __init__(self, *args, **kwargs): super(TestLoginBase, self).__init__(*args, **kwargs) # We're overriding the default behavior for CLI test cases here self.DEFAULT_SKIP_CONFIG = '0' self.parser = argparse.ArgumentParser() self.parser.add_argument('-t', '--token', dest='token') self.parser.add_argument('--api-key', dest='api_key') self.shell = shell.Shell()
def __init__(self, *args, **kwargs): super(TestLoginBase, self).__init__(*args, **kwargs) # We're overriding the default behavior for CLI test cases here self.DEFAULT_SKIP_CONFIG = "0" self.parser = argparse.ArgumentParser() self.parser.add_argument("-t", "--token", dest="token") self.parser.add_argument("--api-key", dest="api_key") self.shell = shell.Shell() self.CONFIG_DIR = os.path.join(self.TMP_DIR, self.PARENT_DIR) self.CONFIG_FILE = os.path.join(self.CONFIG_DIR, self.CONFIG_FILE_NAME)
def __init__(self, *args, **kwargs): super(ActionCommandTestCase, self).__init__(*args, **kwargs) self.shell = shell.Shell()
def __init__(self, *args, **kwargs): super(TestAuthToken, self).__init__(*args, **kwargs) self.parser = argparse.ArgumentParser() self.parser.add_argument('-t', '--token', dest='token') self.shell = shell.Shell()
def __init__(self, *args, **kwargs): super(TestExecutionResultFormatter, self).__init__(*args, **kwargs) self.shell = shell.Shell() self.table = table.SingleRowTable() color.DISABLED = True
def __init__(self, *args, **kwargs): super(TestShell, self).__init__(*args, **kwargs) self.shell = shell.Shell()
def __init__(self, *args, **kwargs): super(TestExecutionResultFormatter, self).__init__(*args, **kwargs) self.shell = shell.Shell()