<commit_before># -*- coding: utf-8 -*-

from __future__ import print_function, absolute_import, division
from unittest2 import TestCase
from moto import mock_s3
import boto
import json

import ultimate_source_of_accounts.account_exporter as ae

BUCKET_REGION = "us-west-2"


class AccountExporterTest(TestCase):
    @mock_s3
    def setUp(self):
        self.old_bucket_region = ae.BUCKET_REGION
        ae.BUCKET_REGION = BUCKET_REGION
        self.bucket_name = "testbucket"
        self.allowed_ips = ["172.16.31.10"]
        self.allowed_aws_account_ids = ["123456789"]
<commit_msg>PIO-118 unset http proxy variables while testing with Moto/Boto<commit_after># -*- coding: utf-8 -*-

from __future__ import print_function, absolute_import, division
from unittest2 import TestCase
from moto import mock_s3
import boto
import json
import os

import ultimate_source_of_accounts.account_exporter as ae

BUCKET_REGION = "us-west-2"

# Else we run into problems with mocking
os.environ['http_proxy'] = ''
os.environ['https_proxy'] = ''
os.environ['no_proxy'] = ''


class AccountExporterTest(TestCase):
    @mock_s3
    def setUp(self):
        self.old_bucket_region = ae.BUCKET_REGION
        ae.BUCKET_REGION = BUCKET_REGION
        self.bucket_name = "testbucket"
        self.allowed_ips = ["172.16.31.10"]
        self.allowed_aws_account_ids = ["123456789"]

{'fraction_non_alphanumeric': 0.0946441672780631, 'fraction_numerical': 0.0359501100513573, 'mean_word_length': 3.978102189781022, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '125186', 'n_tokens_mistral': 473, 'n_tokens_neox': 461, 'n_words': 104}