def __init__(self, config): acconts_config_file = config['billing_configuration'] self.logger = logging.getLogger() self.billing_files_location = config['dst_dir_for_s3_files'] self.verbose_flag = int(config['verbose_flag']) # Load kown accounts configuration account_dict = DEAccountContants.load_constants(acconts_config_file) self.accounts = [] for k, val in account_dict.items(): self.accounts.append(DEAccountContants.AccountConstants(val))
def __init__(self, config): super().__init__(config) acconts_config_file = config["billing_configuration"] self.billing_files_location = config["dst_dir_for_s3_files"] self.verbose_flag = int(config["verbose_flag"]) # Load known accounts configuration account_dict = DEAccountContants.load_constants(acconts_config_file) self.accounts = [] for val in account_dict.values(): self.accounts.append(DEAccountContants.AccountConstants(val))
def test_load(): account_dict = DEAccountContants.load_constants(SAMPLE_FILE) assert account_dict is not None
def test_load(self): account_dict = DEAccountContants.load_constants(SAMPLE_FILE) self.assertIsNotNone(account_dict)