<commit_before>import unittest

import requests_mock

from . import request_body_matcher
from transloadit.client import Transloadit


class AssemblyTest(unittest.TestCase):
    def setUp(self):
        self.transloadit = Transloadit('key', 'secret')
        self.assembly = self.transloadit.new_assembly()
        self.json_response = '{"ok": "ASSEMBLY_COMPLETED", "assembly_id": "abcdef45673"}'

    def test_add_file(self):
        with open('LICENSE') as fs, open('README.md') as fs_2, open('requirements.txt') as fs_3:
            self.assembly.add_file(fs, 'foo_field')

            self.assertEqual(self.assembly.files['foo_field'], fs)

            self.assembly.add_file(fs_2)
            self.assembly.add_file(fs_3)

            self.assertEqual(self.assembly.files['file'], fs_2)
            self.assertEqual(self.assembly.files['file_1'], fs_3)

    def test_remove_file(self):
        with open('LICENSE') as fs:
            self.assembly.add_file(fs, 'foo_field')
<commit_msg>remove tests reference to requirements.txt<commit_after>import unittest

import requests_mock

from . import request_body_matcher
from transloadit.client import Transloadit


class AssemblyTest(unittest.TestCase):
    def setUp(self):
        self.transloadit = Transloadit('key', 'secret')
        self.assembly = self.transloadit.new_assembly()
        self.json_response = '{"ok": "ASSEMBLY_COMPLETED", "assembly_id": "abcdef45673"}'

    def test_add_file(self):
        with open('LICENSE') as fs, open('README.md') as fs_2, open('CHANGELOG.md') as fs_3:
            self.assembly.add_file(fs, 'foo_field')

            self.assertEqual(self.assembly.files['foo_field'], fs)

            self.assembly.add_file(fs_2)
            self.assembly.add_file(fs_3)

            self.assertEqual(self.assembly.files['file'], fs_2)
            self.assertEqual(self.assembly.files['file_1'], fs_3)

    def test_remove_file(self):
        with open('LICENSE') as fs:
            self.assembly.add_file(fs, 'foo_field')

{'fraction_non_alphanumeric': 0.12418952618453866, 'fraction_numerical': 0.011970074812967581, 'mean_word_length': 3.286324786324786, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '2228759', 'n_tokens_mistral': 645, 'n_tokens_neox': 630, 'n_words': 114}