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

from __future__ import unicode_literals

"""
Unit tests for ``django-envelope`` views.
"""

import os

from django.conf import settings
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.utils import override_settings
from django.utils import unittest

try:
    import honeypot
except ImportError:
    honeypot = None

from envelope import signals


test_templates = (
    os.path.join(os.path.dirname(__file__), 'templates'),
    os.path.join(os.path.dirname(__file__), '../templates'),
)


@override_settings(TEMPLATE_DIRS=test_templates)
class ContactViewTestCase(TestCase):
    """
    Unit tests for contact form view.
    """

    def setUp(self):
        self.url = reverse('envelope-contact')<commit_msg>Removed TEMPLATE_DIRS override in view tests.<commit_after># -*- coding: utf-8 -*-

from __future__ import unicode_literals

"""
Unit tests for ``django-envelope`` views.
"""

from django.conf import settings
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.utils import unittest

try:
    import honeypot
except ImportError:
    honeypot = None

from envelope import signals


class ContactViewTestCase(TestCase):
    """
    Unit tests for contact form view.
    """

    def setUp(self):
        self.url = reverse('envelope-contact')
{'fraction_non_alphanumeric': 0.10054719562243503, 'fraction_numerical': 0.0013679890560875513, 'mean_word_length': 4.115384615384615, 'pattern_counts': {'":': 0, '<': 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': '4773957', 'n_tokens_mistral': 433, 'n_tokens_neox': 418, 'n_words': 126}