<commit_before># Copyright 2011 <NAME>
#
# This file is part of Ophot.
#
# Ophot is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ophot is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Ophot.  If not, see <http://www.gnu.org/licenses/>.
"""Provides all the tests as a suite.

This test suite can be specified in the setup.py script as the test suite for
the "python setup.py test" command.

"""
from unittest import defaultTestLoader as loader
from unittest import TestSuite as Suite


def tests_from_modules(*modules):
    """Returns a unittest.TestSuite containing tests loaded from all the
    modules listed in *modules*.

    """
    return Suite([loader.loadTestsFromModule(module) for module in modules])


import test_ophot
import test_requests
alltests = tests_from_modules(test_ophot, test_requests)<commit_msg>added test_views module to alltests<commit_after># Copyright 2011 <NAME>
#
# This file is part of Ophot.
#
# Ophot is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ophot is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Ophot.  If not, see <http://www.gnu.org/licenses/>.
"""Provides all the tests as a suite.

This test suite can be specified in the setup.py script as the test suite for
the "python setup.py test" command.

"""
from unittest import defaultTestLoader as loader
from unittest import TestSuite as Suite


def tests_from_modules(*modules):
    """Returns a unittest.TestSuite containing tests loaded from all the
    modules listed in *modules*.

    """
    return Suite([loader.loadTestsFromModule(module) for module in modules])


import test_ophot
import test_requests
import test_views
alltests = tests_from_modules(test_ophot, test_requests, test_views)
{'fraction_non_alphanumeric': 0.06264236902050115, 'fraction_numerical': 0.0037965072133637054, 'mean_word_length': 4.444214876033058, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3271987', 'n_tokens_mistral': 711, 'n_tokens_neox': 683, 'n_words': 358}